X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=libavformat%2Fmpegtsenc.c;h=8b0736ac4e36f8af3163c26996dd0abeef5917f0;hb=f6ea397d0ae4e4188e90deecbcffd1cf5419c110;hp=fdfa544ee26f4a01fdf93b622ad13309625195a3;hpb=5e4923b411b9b77b306d8e9247afb4b2f04f1a8f;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;