[FFmpeg-devel] [PATCH] lavf: allow multiple names in output devices selected by av_guess_format()
Stefano Sabatini
stefasab at gmail.com
Fri Jun 29 10:34:15 CEST 2012
Consistent with av_find_input_format().
---
libavformat/utils.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 1a586ad..27804b8 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -226,7 +226,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 && !av_strcasecmp(fmt->name, short_name))
+ if (fmt->name && short_name && match_format(short_name, fmt->name))
score += 100;
if (fmt->mime_type && mime_type && !strcmp(fmt->mime_type, mime_type))
score += 10;
--
1.7.5.4
More information about the ffmpeg-devel
mailing list