[FFmpeg-cvslog] lavf/format.c: use AVPROBE_SCORE_MIME instead of AVPROBE_SCORE_EXTENSION for matching mime types
Andreas Cadhalpun
git at videolan.org
Sat Sep 13 00:53:22 CEST 2014
ffmpeg | branch: master | Andreas Cadhalpun <Andreas.Cadhalpun at googlemail.com> | Fri Sep 12 18:20:08 2014 +0200| [bcac0f401001e6ebb0ae2718cc42d30b2009de4b] | committer: Michael Niedermayer
lavf/format.c: use AVPROBE_SCORE_MIME instead of AVPROBE_SCORE_EXTENSION for matching mime types
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun at googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bcac0f401001e6ebb0ae2718cc42d30b2009de4b
---
libavformat/format.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/format.c b/libavformat/format.c
index 006cc87..1026c8f 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;
More information about the ffmpeg-cvslog
mailing list