changeset 564:5329d156177a libavcodec

low_delay / has_b_frames fix
author michaelni
date Wed, 17 Jul 2002 10:30:31 +0000
parents 61442627f857
children 44d744901ded
files h263.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/h263.c	Wed Jul 17 09:15:14 2002 +0000
+++ b/h263.c	Wed Jul 17 10:30:31 2002 +0000
@@ -3504,7 +3504,9 @@
                 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 */