summaryrefslogtreecommitdiff
path: root/libavformat/mpegts.c
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2020-12-28 01:21:20 +0100
committerMarton Balint <cus@passwd.hu>2021-01-09 22:38:12 +0100
commit2e2891383e596314a9888ba9b99d6987c82d7c9b (patch)
tree376cb63cde0be9eb04710a86dd708161febf7bc3 /libavformat/mpegts.c
parente57879ec18edab5827268a498577cece82d56811 (diff)
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>
Diffstat (limited to 'libavformat/mpegts.c')
-rw-r--r--libavformat/mpegts.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index bde0eeec35..e283ec09d7 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -2400,9 +2400,6 @@ static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len
if (!pes->st)
goto out;
pes->st->id = pes->pid;
- pes->st->program_num = h->id;
- pes->st->pmt_version = h->version;
- pes->st->pmt_stream_idx = i;
}
st = pes->st;
} else if (is_pes_stream(stream_type, prog_reg_desc)) {
@@ -2422,9 +2419,6 @@ static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len
if (!st)
goto out;
st->id = pes->pid;
- st->program_num = h->id;
- st->pmt_version = h->version;
- st->pmt_stream_idx = i;
}
} else {
int idx = ff_find_stream_index(ts->stream, pid);
@@ -2439,9 +2433,6 @@ static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len
if (!st)
goto out;
st->id = pid;
- st->program_num = h->id;
- st->pmt_version = h->version;
- st->pmt_stream_idx = i;
st->codecpar->codec_type = AVMEDIA_TYPE_DATA;
if (stream_type == 0x86 && prog_reg_desc == AV_RL32("CUEI")) {
mpegts_find_stream_type(st, stream_type, SCTE_types);