Commit 26ffa8ea authored by Michael Niedermayer's avatar Michael Niedermayer

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

Fixes part of Ticket2236
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 956f4087
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment