diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2002-07-17 10:30:31 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2002-07-17 10:30:31 +0000 |
commit | cc504d3c3c3e11d58b381865ebee891b0f3c2d6e (patch) | |
tree | 1a326d02ba4f74586a56c3dc77ef815b5fd33ae3 | |
parent | 1a013246fb665a5032c2a1656cf357213f1d0414 (diff) | |
download | ffmpeg-cc504d3c3c3e11d58b381865ebee891b0f3c2d6e.tar.gz |
low_delay / has_b_frames fix
Originally committed as revision 770 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/h263.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/h263.c b/libavcodec/h263.c index 8fe7d22e18..f6280c445b 100644 --- a/libavcodec/h263.c +++ b/libavcodec/h263.c @@ -3504,7 +3504,9 @@ int mpeg4_decode_picture_header(MpegEncContext * s) return -1; } }else{ - s->low_delay=0; + // set low delay flag only once so the smart? low delay detection wont be overriden + if(s->picture_number==0) + s->low_delay=0; } s->shape = get_bits(&s->gb, 2); /* vol shape */ |