projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63dcd16
)
lavf: make output format matching case insensitive
author
Mans Rullgard
<mans@mansr.com>
Sat, 19 May 2012 17:44:16 +0000
(18:44 +0100)
committer
Mans Rullgard
<mans@mansr.com>
Sat, 19 May 2012 18:44:15 +0000
(19:44 +0100)
This is consistent with how input formats are matched.
Signed-off-by: Mans Rullgard <mans@mansr.com>
libavformat/utils.c
patch
|
blob
|
history
diff --git
a/libavformat/utils.c
b/libavformat/utils.c
index e51884774b3bca677d14f261c55648124820e594..e8430b23fa7337e3c88a42a78c776815b7bf88b2 100644
(file)
--- 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 && !
str
cmp(fmt->name, short_name))
+ if (fmt->name && short_name && !
av_strcase
cmp(fmt->name, short_name))
score += 100;
if (fmt->mime_type && mime_type && !strcmp(fmt->mime_type, mime_type))
score += 10;