From: Andreas Cadhalpun <[email protected]> It should be more trustworthy than extension matching.
Signed-off-by: Luca Barbato <[email protected]> --- IIRC there were consensus on that but looks like in the end I pushed the unmodified patch... thanks to Andreas for pointing it out. (MIME is 1/2 higher than EXTENSION) 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; -- 2.1.0 _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
