diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2003-08-05 10:19:43 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-08-05 10:19:43 +0000 |
commit | 59c673d5180cd85f367df0badf435f09513a5947 (patch) | |
tree | 3b9e8bf6901570b3a18d6f84a4f41496279e3c7f /libavcodec/h263.c | |
parent | 2864dfd5794a5a9bff612e730179a9026f042a06 (diff) | |
download | ffmpeg-59c673d5180cd85f367df0badf435f09513a5947.tar.gz |
cleanup / fixes
Originally committed as revision 2103 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h263.c')
-rw-r--r-- | libavcodec/h263.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libavcodec/h263.c b/libavcodec/h263.c index 3f48418131..ec30214031 100644 --- a/libavcodec/h263.c +++ b/libavcodec/h263.c @@ -4832,13 +4832,13 @@ static int decode_vop_header(MpegEncContext *s, GetBitContext *gb){ 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 @@ int ff_mpeg4_decode_picture_header(MpegEncContext * s, GetBitContext *gb) 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); |