[FFmpeg-cvslog] lavf: make output format matching case insensitive
Mans Rullgard
git at videolan.org
Sun May 20 23:00:46 CEST 2012
ffmpeg | branch: master | Mans Rullgard <mans at mansr.com> | Sat May 19 18:44:16 2012 +0100| [81ad97eedad2b34a8b758fda72f68488d7f86118] | committer: Mans Rullgard
lavf: make output format matching case insensitive
This is consistent with how input formats are matched.
Signed-off-by: Mans Rullgard <mans at mansr.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=81ad97eedad2b34a8b758fda72f68488d7f86118
---
libavformat/utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/utils.c b/libavformat/utils.c
index e518847..e8430b2 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;
More information about the ffmpeg-cvslog
mailing list