[FFmpeg-cvslog] probe: Bump the score for mime type matching

Andreas Cadhalpun git at videolan.org
Sat Sep 27 01:40:45 CEST 2014


ffmpeg | branch: master | Andreas Cadhalpun <Andreas.Cadhalpun at googlemail.com> | Sat Sep 13 01:25:22 2014 +0200| [883e98bc25755327565d8ae0f565a6c886f24816] | committer: Luca Barbato

probe: Bump the score for mime type matching

It should be more trustworthy than extension matching.

Signed-off-by: Luca Barbato <lu_zero at gentoo.org>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=883e98bc25755327565d8ae0f565a6c886f24816
---

 libavformat/format.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/format.c b/libavformat/format.c
index c5a57d5..11f9a52 100644
--- a/libavformat/format.c
+++ b/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;



More information about the ffmpeg-cvslog mailing list