Commit 883e98bc authored by Andreas Cadhalpun's avatar Andreas Cadhalpun Committed by Luca Barbato

probe: Bump the score for mime type matching

It should be more trustworthy than extension matching.
Signed-off-by: 's avatarLuca Barbato <lu_zero@gentoo.org>
parent d995f0a1
......@@ -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;
......
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