Commit c8ce2b0a authored by Joakim Plate's avatar Joakim Plate Committed by Michael Niedermayer

mpegts: When playing mpegts over rtp/rtsp/sdp, lavf must still read PAT/SDT to...

mpegts: When playing mpegts over rtp/rtsp/sdp, lavf must still read PAT/SDT to get available streams

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: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 53f8f0a7
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment