X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fformat.c;h=1026c8f7a72dd672351385dee2c3aa290a398d0a;hb=c895fa7f66c01de6cfead8b1866dad478daad948;hp=828ab52fc997167900b087bb26efc478d29bdbcc;hpb=5e3da256184e13502b3428f94e180888436d157b;p=ffmpeg diff --git a/libavformat/format.c b/libavformat/format.c index 828ab52fc99..1026c8f7a72 100644 --- a/libavformat/format.c +++ b/libavformat/format.c @@ -202,7 +202,7 @@ AVInputFormat *av_probe_input_format3(AVProbeData *pd, int is_opened, fmt = NULL; while ((fmt1 = av_iformat_next(fmt1))) { - if (!is_opened == !(fmt1->flags & AVFMT_NOFILE)) + if (!is_opened == !(fmt1->flags & AVFMT_NOFILE) && strcmp(fmt1->name, "image2")) continue; score = 0; if (fmt1->read_probe) { @@ -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;