OSDN Git Service

lavf: allow multiple names in output devices selected by av_guess_format()
authorStefano Sabatini <stefasab@gmail.com>
Fri, 13 Jan 2012 10:09:43 +0000 (11:09 +0100)
committerStefano Sabatini <stefasab@gmail.com>
Fri, 29 Jun 2012 14:54:18 +0000 (16:54 +0200)
Consistent with av_find_input_format().

libavformat/utils.c
libavformat/version.h

index 1a586ad..27804b8 100644 (file)
@@ -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;
index 6562061..34b8a07 100644 (file)
@@ -31,7 +31,7 @@
 
 #define LIBAVFORMAT_VERSION_MAJOR 54
 #define LIBAVFORMAT_VERSION_MINOR 11
-#define LIBAVFORMAT_VERSION_MICRO 100
+#define LIBAVFORMAT_VERSION_MICRO 101
 
 #define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
                                                LIBAVFORMAT_VERSION_MINOR, \