mpegts: When playing mpegts over rtp/rtsp/sdp, lavf must still read PAT/SDT to get...
authorJoakim Plate <elupus@ecce.se>
Sun, 11 Sep 2011 18:10:22 +0000 (20:10 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 11 Sep 2011 18:21:47 +0000 (20:21 +0200)
The code path using for mpegts over rtp doesn't open the demuxer using
mpegts_read_header,
so it never starts listening for PAT/SDT, only uses auto_guess

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/mpegts.c

index c8e5660..b8c7f5f 100644 (file)
@@ -1871,6 +1871,9 @@ MpegTSContext *ff_mpegts_parse_open(AVFormatContext *s)
     ts->raw_packet_size = TS_PACKET_SIZE;
     ts->stream = s;
     ts->auto_guess = 1;
+    mpegts_open_section_filter(ts, SDT_PID, sdt_cb, ts, 1);
+    mpegts_open_section_filter(ts, PAT_PID, pat_cb, ts, 1);
+
     return ts;
 }