]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/mpegtsenc.c
avformat: migrate to AVFormatContext->url
[ffmpeg] / libavformat / mpegtsenc.c
index fdfa544ee26f4a01fdf93b622ad13309625195a3..8b0736ac4e36f8af3163c26996dd0abeef5917f0 100644 (file)
@@ -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;