aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mpegts.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-04-29 05:00:51 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-04-29 05:00:51 +0200
commit639781492684fcad05da52e7700bcbf6086599ea (patch)
tree6616c069373a3614d6142dc4fc8d2ecb1c1d3b02 /libavformat/mpegts.c
parent12f7253d0ea11c44ac01e1727a2724df060530a8 (diff)
downloadffmpeg-639781492684fcad05da52e7700bcbf6086599ea.tar.gz
avformat/mpegts: reset last_version on seeking
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mpegts.c')
-rw-r--r--libavformat/mpegts.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index 82c86fc575..2caa6c6474 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -2369,6 +2369,8 @@ static int handle_packets(MpegTSContext *ts, int64_t nb_packets)
av_buffer_unref(&pes->buffer);
pes->data_index = 0;
pes->state = MPEGTS_SKIP; /* skip until pes header */
+ } else if (ts->pids[i]->type == MPEGTS_SECTION) {
+ ts->pids[i]->u.section_filter.last_ver = -1;
}
ts->pids[i]->last_cc = -1;
ts->pids[i]->last_pcr = -1;