From bcac0f401001e6ebb0ae2718cc42d30b2009de4b Mon Sep 17 00:00:00 2001 From: Andreas Cadhalpun Date: Fri, 12 Sep 2014 18:20:08 +0200 Subject: [PATCH] lavf/format.c: use AVPROBE_SCORE_MIME instead of AVPROBE_SCORE_EXTENSION for matching mime types Signed-off-by: Andreas Cadhalpun Signed-off-by: Michael Niedermayer --- libavformat/format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/format.c b/libavformat/format.c index 006cc87e1c..1026c8f7a7 100644 --- a/libavformat/format.c +++ b/libavformat/format.c @@ -217,7 +217,7 @@ AVInputFormat *av_probe_input_format3(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;