mpeg12video_parser: Wrong bit rate in MPEG2 video file (Ticket #1862)

mpegvideo parser sometime get wrong stream bit rate which is 0x3FFFF*400.
But maximum bit rate of MPEG2 video is up to 80 Mbps in case 1920x1080 resolution.
When bit rate is 0x3FFFF*400, set bit rate zero.

* Problematic link
https://docs.google.com/open?id=0B6r7ZfWFIypCUkhPa0dyTGdFSE0

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/6/merge
Heesuk Jung 12 years ago committed by Michael Niedermayer
parent 740959fdbf
commit c349177b8c
  1. 2
      libavcodec/mpegvideo_parser.c

@ -131,7 +131,7 @@ static void mpegvideo_extract_headers(AVCodecParserContext *s,
}
}
the_end: ;
if (bit_rate) {
if (bit_rate && bit_rate != 0x3FFFF) {
avctx->bit_rate = 400 * bit_rate;
}
}

Loading…
Cancel
Save