Commit 74248229 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

improve probe and give it the max score

Originally committed as revision 7667 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 8e606cc8
......@@ -34,8 +34,8 @@ static int flv_probe(AVProbeData *p)
if (p->buf_size < 6)
return 0;
d = p->buf;
if (d[0] == 'F' && d[1] == 'L' && d[2] == 'V') {
return 50;
if (d[0] == 'F' && d[1] == 'L' && d[2] == 'V' && d[3] < 5 && d[5]==0) {
return AVPROBE_SCORE_MAX;
}
return 0;
}
......
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