diff --git a/libavformat/utils.c b/libavformat/utils.c index e51884774b3bc..e8430b23fa733 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -218,7 +218,7 @@ AVOutputFormat *av_guess_format(const char *short_name, const char *filename, score_max = 0; while ((fmt = av_oformat_next(fmt))) { score = 0; - if (fmt->name && short_name && !strcmp(fmt->name, short_name)) + if (fmt->name && short_name && !av_strcasecmp(fmt->name, short_name)) score += 100; if (fmt->mime_type && mime_type && !strcmp(fmt->mime_type, mime_type)) score += 10;