avformat/mpegts: reset last_version on seeking
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 29 Apr 2015 03:00:51 +0000 (05:00 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 19 May 2015 18:57:07 +0000 (20:57 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 639781492684fcad05da52e7700bcbf6086599ea)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/mpegts.c

index 3fe6aa4..3aa616a 100644 (file)
@@ -2293,6 +2293,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;