lavf/format.c: use AVPROBE_SCORE_MIME instead of AVPROBE_SCORE_EXTENSION for matching...
[ffmpeg.git] / libavformat / format.c
index 006cc87e1cc809e7a0a8db427ec1a6c694945b50..1026c8f7a72dd672351385dee2c3aa290a398d0a 100644 (file)
@@ -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;