Commit a6398f14 authored by michael's avatar michael

improve probe and give it the max score


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7667 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 65344912
...@@ -34,8 +34,8 @@ static int flv_probe(AVProbeData *p) ...@@ -34,8 +34,8 @@ static int flv_probe(AVProbeData *p)
if (p->buf_size < 6) if (p->buf_size < 6)
return 0; return 0;
d = p->buf; d = p->buf;
if (d[0] == 'F' && d[1] == 'L' && d[2] == 'V') { if (d[0] == 'F' && d[1] == 'L' && d[2] == 'V' && d[3] < 5 && d[5]==0) {
return 50; return AVPROBE_SCORE_MAX;
} }
return 0; 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