Skip to content

Commit

Permalink
lavf: make output format matching case insensitive
Browse files Browse the repository at this point in the history
This is consistent with how input formats are matched.

Signed-off-by: Mans Rullgard <[email protected]>
  • Loading branch information
mansr committed May 19, 2012
1 parent 63dcd16 commit 81ad97e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libavformat/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 81ad97e

Please sign in to comment.