diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2007-01-23 15:23:41 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2007-01-23 15:23:41 +0000 |
commit | 742482290f234b1d15fce67d1044889b065d3bb9 (patch) | |
tree | 2e28c52c26405925a4bc34f337c1b4453fc04737 /libavformat | |
parent | 8e606cc88caee3398c20a65a7b613d8618758e6d (diff) | |
download | ffmpeg-742482290f234b1d15fce67d1044889b065d3bb9.tar.gz |
improve probe and give it the max score
Originally committed as revision 7667 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/flvdec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index 4aaeae6b9f..a8338028ae 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -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; } |