X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fmpegtsenc.c;h=8b0736ac4e36f8af3163c26996dd0abeef5917f0;hb=18ac64235939c4c5c7656546a9545f68339affbe;hp=fdfa544ee26f4a01fdf93b622ad13309625195a3;hpb=08fd6e8e3c8f70e4559bea1595adb5a833b110ea;p=ffmpeg diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index fdfa544ee26..8b0736ac4e3 100644 --- a/libavformat/mpegtsenc.c +++ b/libavformat/mpegtsenc.c @@ -1012,7 +1012,7 @@ static int mpegts_init(AVFormatContext *s) ts->sdt_packet_period, ts->pat_packet_period); if (ts->m2ts_mode == -1) { - if (av_match_ext(s->filename, "m2ts")) { + if (av_match_ext(s->url, "m2ts")) { ts->m2ts_mode = 1; } else { ts->m2ts_mode = 0;