diff options
author | Joakim Plate <elupus@ecce.se> | 2011-09-11 20:10:22 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-09-11 20:21:47 +0200 |
commit | c8ce2b0a1dce4f07b74c4686682bf72dbd307290 (patch) | |
tree | bf9d233dda7c2d1fd05b93946a65dfaed343f9da /libavformat/mpegts.c | |
parent | 53f8f0a70e224a40cf2276669a808fb4ac824c05 (diff) | |
download | ffmpeg-c8ce2b0a1dce4f07b74c4686682bf72dbd307290.tar.gz |
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: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mpegts.c')
-rw-r--r-- | libavformat/mpegts.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index c8e56607ef..b8c7f5f921 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -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; } |