Browse Source

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>
tags/n2.5
Andreas Cadhalpun Luca Barbato 11 years ago
parent
commit
883e98bc25
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/format.c

+ 1
- 1
libavformat/format.c 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;


Loading…
Cancel
Save