diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2003-07-06 21:24:04 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-07-06 21:24:04 +0000 |
commit | e0560448249e3b5cd9961fb1e376de0731ac0e5e (patch) | |
tree | 42f6e6a09d363061fd870f56a923149c08d39531 /libavcodec/mpeg12.c | |
parent | 27fc5352d01f48d4b3aa059486cc126823a8d393 (diff) | |
download | ffmpeg-e0560448249e3b5cd9961fb1e376de0731ac0e5e.tar.gz |
CODEC_FLAG_LOW_DELAY fix
Originally committed as revision 2016 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpeg12.c')
-rw-r--r-- | libavcodec/mpeg12.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c index b78ae38511..e818bbcd12 100644 --- a/libavcodec/mpeg12.c +++ b/libavcodec/mpeg12.c @@ -1653,7 +1653,10 @@ static void mpeg_decode_sequence_extension(MpegEncContext *s) s->bit_rate = ((s->bit_rate / 400) | (bit_rate_ext << 12)) * 400; skip_bits1(&s->gb); /* marker */ vbv_buf_ext = get_bits(&s->gb, 8); + s->low_delay = get_bits1(&s->gb); + if(s->flags & CODEC_FLAG_LOW_DELAY) s->low_delay=1; + frame_rate_ext_n = get_bits(&s->gb, 2); frame_rate_ext_d = get_bits(&s->gb, 5); av_reduce( |