X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Futils.c;h=8e4d6fcdb357dfd9303dddf379e992cb315dddde;hb=349c62410ba92b9513d4a31ec69cbf3ef5240555;hp=2d3ec0fb92a9827347ff3c56369512b343e6cf5b;hpb=432fe9a38afca9104c1c11942d21739e2a48ba96;p=ffmpeg diff --git a/libavformat/utils.c b/libavformat/utils.c index 2d3ec0fb92a..8e4d6fcdb35 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -228,7 +228,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;