[FFmpeg-cvslog] avformat/format: use av_match_name() in av_guess_codec()

Michael Niedermayer git at videolan.org
Sat Aug 2 03:40:45 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Aug  2 03:31:22 2014 +0200| [26ffa8eaee2d3279b305dd7b0a82eafe28d3c856] | committer: Michael Niedermayer

avformat/format: use av_match_name() in av_guess_codec()

Fixes part of Ticket2236

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=26ffa8eaee2d3279b305dd7b0a82eafe28d3c856
---

 libavformat/format.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/format.c b/libavformat/format.c
index 233fbd7..238a13a 100644
--- a/libavformat/format.c
+++ b/libavformat/format.c
@@ -144,7 +144,7 @@ enum AVCodecID av_guess_codec(AVOutputFormat *fmt, const char *short_name,
                               const char *filename, const char *mime_type,
                               enum AVMediaType type)
 {
-    if (!strcmp(fmt->name, "segment") || !strcmp(fmt->name, "ssegment")) {
+    if (av_match_name("segment", fmt->name) || av_match_name("ssegment", fmt->name)) {
         fmt = av_guess_format(NULL, filename, NULL);
     }
 



More information about the ffmpeg-cvslog mailing list