1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

improve probe and give it the max score

Originally committed as revision 7667 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2007-01-23 15:23:41 +00:00
parent 8e606cc88c
commit 742482290f

View File

@ -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;
}