aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-08-02 03:31:22 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-08-02 03:39:38 +0200
commit26ffa8eaee2d3279b305dd7b0a82eafe28d3c856 (patch)
treec953a2b901bfe37b417d39edc2aa794b94208a27
parent956f4087c6eb717e31f3b92fe03fd56a3747eccf (diff)
downloadffmpeg-26ffa8eaee2d3279b305dd7b0a82eafe28d3c856.tar.gz
avformat/format: use av_match_name() in av_guess_codec()
Fixes part of Ticket2236 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/format.c2
1 files changed, 1 insertions, 1 deletions
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);
}