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>
pull/86/head
Andreas Cadhalpun 11 years ago committed by Luca Barbato
parent d995f0a155
commit 883e98bc25
  1. 2
      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;

Loading…
Cancel
Save