diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-10-30 02:27:50 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-10-30 02:27:50 +0100 |
commit | 4b7f34a34e4569228627c8954fab08a49203c89c (patch) | |
tree | 8df87559d63e7503cd58789f9c6822e40bd48c59 /libavcodec/mpeg12.c | |
parent | c349177b8cc0deb67df51ec1280c8e5a897a8067 (diff) | |
download | ffmpeg-streaming-4b7f34a34e4569228627c8954fab08a49203c89c.zip ffmpeg-streaming-4b7f34a34e4569228627c8954fab08a49203c89c.tar.gz |
mpeg12videodec: dont pass mpeg1 VBR special case value on as bitrate.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mpeg12.c')
-rw-r--r-- | libavcodec/mpeg12.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c index 3d01a2e..bdb6b00 100644 --- a/libavcodec/mpeg12.c +++ b/libavcodec/mpeg12.c @@ -1278,7 +1278,8 @@ static int mpeg_decode_postinit(AVCodecContext *avctx) return -2; avcodec_set_dimensions(avctx, s->width, s->height); - avctx->bit_rate = s->bit_rate; + if (s->bit_rate && s->bit_rate != 0x3FFFF*400) + avctx->bit_rate = s->bit_rate; s1->save_aspect_info = s->aspect_ratio_info; s1->save_width = s->width; s1->save_height = s->height; |