at the start of the stream. also read all available data in the probe buffer.
Originally committed as revision 9922 to svn://svn.ffmpeg.org/ffmpeg/trunk
max_frames = 0;
buf = p->buf;
- end = buf + FFMIN(5120, p->buf_size - 7);
+ end = buf + p->buf_size;
for(; buf < end; buf++) {
buf2 = buf;
first_frames = frames;
}
if (first_frames>=3) return AVPROBE_SCORE_MAX * 3 / 4;
- else if(max_frames>=2) return AVPROBE_SCORE_MAX / 2;
+ else if(max_frames>=2 || first_frames>=1) return AVPROBE_SCORE_MAX / 2;
else if(max_frames>=1) return 1;
else return 0;
}