From 676a93f2d86d704ab6a973a19000e265c14e37d5 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 10 Dec 2015 20:59:40 +0100 Subject: avformat: Add av_program_add_stream_index() This will be used by the subsequent commit(s) Signed-off-by: Michael Niedermayer --- libavformat/mpegts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavformat/mpegts.c') diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index 4a6a5e5e85..7a905a44e9 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -1958,7 +1958,7 @@ static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len add_pid_to_pmt(ts, h->id, pid); - ff_program_add_stream_index(ts->stream, h->id, st->index); + av_program_add_stream_index(ts->stream, h->id, st->index); desc_list_len = get16(&p, p_end); if (desc_list_len < 0) @@ -1975,7 +1975,7 @@ static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len if (pes && prog_reg_desc == AV_RL32("HDMV") && stream_type == 0x83 && pes->sub_st) { - ff_program_add_stream_index(ts->stream, h->id, + av_program_add_stream_index(ts->stream, h->id, pes->sub_st->index); pes->sub_st->codec->codec_tag = st->codec->codec_tag; } -- cgit v1.2.3