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>
This commit is contained in:
Andreas Cadhalpun 2014-09-13 01:25:22 +02:00 committed by Luca Barbato
parent d995f0a155
commit 883e98bc25

View File

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