Commit 2833546a authored by michael's avatar michael

Only try to probe the codec when the available data has roughly doubled

relative to the last attempt.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14188 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 94c1a03e
......@@ -588,11 +588,13 @@ int av_read_packet(AVFormatContext *s, AVPacket *pkt)
pd->buf_size += pkt->size;
memset(pd->buf+pd->buf_size, 0, AVPROBE_PADDING_SIZE);
if(av_log2(pd->buf_size) != av_log2(pd->buf_size - pkt->size)){
set_codec_from_probe_data(st, pd, 1);
if(st->codec->codec_id != CODEC_ID_PROBE){
pd->buf_size=0;
av_freep(&pd->buf);
}
}
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment