low_delay / has_b_frames fix
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 17 Jul 2002 10:30:31 +0000 (10:30 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 17 Jul 2002 10:30:31 +0000 (10:30 +0000)
Originally committed as revision 770 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/h263.c

index 8fe7d22..f6280c4 100644 (file)
@@ -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 */