diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2012-01-13 11:09:43 +0100 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2012-06-29 16:54:18 +0200 |
commit | 3cd4f9fd76d626f3168393b55549440a2cb8e716 (patch) | |
tree | bb45930126791e552f800932e0b590a4f01a07e6 /libavformat/utils.c | |
parent | df531b0e1004cdc76e656465d84ede7cfd9e370a (diff) | |
download | ffmpeg-3cd4f9fd76d626f3168393b55549440a2cb8e716.tar.gz |
lavf: allow multiple names in output devices selected by av_guess_format()
Consistent with av_find_input_format().
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 1a586ad2bb..27804b8585 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; |