1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

fixing decoding of AlanKay-245.asf

Originally committed as revision 4219 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2005-05-11 17:13:42 +00:00
parent aac064b5bd
commit 160147ccfc

View File

@ -5808,8 +5808,8 @@ static int decode_vop_header(MpegEncContext *s, GetBitContext *gb){
time_incr++; time_incr++;
check_marker(gb, "before time_increment"); 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"); 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++){ for(s->time_increment_bits=1 ;s->time_increment_bits<16; s->time_increment_bits++){