summaryrefslogtreecommitdiff
path: root/libavformat/utils.c
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2012-05-19 18:44:16 +0100
committerMans Rullgard <mans@mansr.com>2012-05-19 19:44:15 +0100
commit81ad97eedad2b34a8b758fda72f68488d7f86118 (patch)
tree4d1b820a8ca7c0a5d96a6e76e82607f3cf69f994 /libavformat/utils.c
parent63dcd16d567862d94fe4b178e47f440e8ad6a2c9 (diff)
lavf: make output format matching case insensitive
This is consistent with how input formats are matched. Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r--libavformat/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index e51884774b..e8430b23fa 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;