]> git.sesse.net Git - ffmpeg/commit
avformat: remove some mpegts details from AVStream
authorMarton Balint <cus@passwd.hu>
Mon, 28 Dec 2020 00:21:20 +0000 (01:21 +0100)
committerMarton Balint <cus@passwd.hu>
Sat, 9 Jan 2021 21:38:12 +0000 (22:38 +0100)
commit2e2891383e596314a9888ba9b99d6987c82d7c9b
tree376cb63cde0be9eb04710a86dd708161febf7bc3
parente57879ec18edab5827268a498577cece82d56811
avformat: remove some mpegts details from AVStream

These fields were added to support -merge_pmt_versions, but the mpegts demuxer
is also keeping track its programs internally, so that should be a better place
to handle it.

Also it is not a very good idea to keep fields like program_num or
pmt_stream_idx in an AVStream, because a single stream can be part of multiple
programs, multiple PMTs, so the stream attributes can refer to any program the
stream is part of.

Since they are not part of public API, lets simply remove them, or rather
replace them with placeholders for ABI compatibility with libavdevice.

Signed-off-by: Marton Balint <cus@passwd.hu>
libavformat/avformat.h
libavformat/mpegts.c