From 26ffa8eaee2d3279b305dd7b0a82eafe28d3c856 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 2 Aug 2014 03:31:22 +0200 Subject: [PATCH] avformat/format: use av_match_name() in av_guess_codec() Fixes part of Ticket2236 Signed-off-by: Michael Niedermayer --- libavformat/format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/format.c b/libavformat/format.c index 233fbd7c30..238a13acd4 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); }