1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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

Fixes part of Ticket2236

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-08-02 03:31:22 +02:00
parent 956f4087c6
commit 26ffa8eaee

View File

@ -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);
}