changeset 2666:06f0744ffc18 libavcodec

fixing decoding of AlanKay-245.asf
author michael
date Wed, 11 May 2005 17:13:42 +0000
parents 5ea2a7f74817
children e99703305233
files h263.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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++){