diff options
author | Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> | 2014-09-13 01:25:22 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2014-09-26 20:56:16 +0200 |
commit | 883e98bc25755327565d8ae0f565a6c886f24816 (patch) | |
tree | 5bef9910cc7e52e3df541237b24fee5a31d03e62 /libavformat | |
parent | d995f0a1550c9148140eab34c7d770e90925c004 (diff) | |
download | ffmpeg-883e98bc25755327565d8ae0f565a6c886f24816.tar.gz |
probe: Bump the score for mime type matching
It should be more trustworthy than extension matching.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/format.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/format.c b/libavformat/format.c index c5a57d5451..11f9a52280 100644 --- a/libavformat/format.c +++ b/libavformat/format.c @@ -196,7 +196,7 @@ AVInputFormat *av_probe_input_format2(AVProbeData *pd, int is_opened, score = AVPROBE_SCORE_EXTENSION; } if (av_match_name(lpd.mime_type, fmt1->mime_type)) - score = FFMAX(score, AVPROBE_SCORE_EXTENSION); + score = FFMAX(score, AVPROBE_SCORE_MIME); if (score > *score_max) { *score_max = score; fmt = fmt1; |