diff h263.c @ 2666:06f0744ffc18 libavcodec

fixing decoding of AlanKay-245.asf
author michael
date Wed, 11 May 2005 17:13:42 +0000
parents d1609cfeb1d0
children edd8e513376c
line wrap: on
line diff
--- a/h263.c	Wed May 11 16:42:15 2005 +0000
+++ b/h263.c	Wed May 11 17:13:42 2005 +0000
@@ -5808,8 +5808,8 @@
         time_incr++;
 
     check_marker(gb, "before time_increment");
-    
-    if(s->time_increment_bits==0){
+
+    if(s->time_increment_bits==0 || !(show_bits(gb, s->time_increment_bits+1)&1)){
         av_log(s->avctx, AV_LOG_ERROR, "hmm, seems the headers are not complete, trying to guess time_increment_bits\n");
 
         for(s->time_increment_bits=1 ;s->time_increment_bits<16; s->time_increment_bits++){