Commit 887b9ab1 authored by michael's avatar michael

Raise needed score for codec probing in CODEC_ID_PROBE before the last packet.

Fixes issue1871


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22831 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 94f25036
......@@ -675,7 +675,8 @@ int av_read_packet(AVFormatContext *s, AVPacket *pkt)
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(s, st, pd, 1);
//FIXME we dont reduce score to 0 for the case of running out of buffer space in bytes
set_codec_from_probe_data(s, st, pd, st->probe_packets > 0 ? AVPROBE_SCORE_MAX/4 : 0);
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