Mercurial > libavcodec.hg
diff h263.c @ 1396:e380ac39024a libavcodec
cleanup / fixes
author | michaelni |
---|---|
date | Tue, 05 Aug 2003 10:19:43 +0000 |
parents | ba99a78bcb37 |
children | c2e63cb94d06 |
line wrap: on
line diff
--- a/h263.c Sat Aug 02 22:01:02 2003 +0000 +++ b/h263.c Tue Aug 05 10:19:43 2003 +0000 @@ -4832,13 +4832,13 @@ check_marker(gb, "before time_increment"); - if(s->picture_number==0 && (show_bits(gb, s->time_increment_bits+1)&1)==0){ + if(s->time_increment_bits==0){ printf("hmm, seems the headers arnt complete, trying to guess time_increment_bits\n"); - for(s->time_increment_bits=1 ;s->time_increment_bits<16; s->time_increment_bits++){ if(show_bits(gb, s->time_increment_bits+1)&1) break; } + printf("my guess is %d bits ;)\n",s->time_increment_bits); } @@ -5070,7 +5070,8 @@ switch(startcode){ case 0x120: - decode_vol_header(s, gb); + if(decode_vol_header(s, gb) < 0) + return -1; break; case USER_DATA_STARTCODE: decode_user_data(s, gb);