Commit 81ad97ee authored by Mans Rullgard's avatar Mans Rullgard

lavf: make output format matching case insensitive

This is consistent with how input formats are matched.
Signed-off-by: 's avatarMans Rullgard <mans@mansr.com>
parent 63dcd16d
...@@ -218,7 +218,7 @@ AVOutputFormat *av_guess_format(const char *short_name, const char *filename, ...@@ -218,7 +218,7 @@ AVOutputFormat *av_guess_format(const char *short_name, const char *filename,
score_max = 0; score_max = 0;
while ((fmt = av_oformat_next(fmt))) { while ((fmt = av_oformat_next(fmt))) {
score = 0; 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; score += 100;
if (fmt->mime_type && mime_type && !strcmp(fmt->mime_type, mime_type)) if (fmt->mime_type && mime_type && !strcmp(fmt->mime_type, mime_type))
score += 10; score += 10;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment