[FFmpeg-cvslog] avformat/mpegts: reset last_version on seeking

Michael Niedermayer git at videolan.org
Tue May 19 21:06:45 CEST 2015


ffmpeg | branch: release/2.4 | Michael Niedermayer <michaelni at gmx.at> | Wed Apr 29 05:00:51 2015 +0200| [74b856e58bd91a626f2212e323f7e9bb27846966] | committer: Michael Niedermayer

avformat/mpegts: reset last_version on seeking

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 639781492684fcad05da52e7700bcbf6086599ea)

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=74b856e58bd91a626f2212e323f7e9bb27846966
---

 libavformat/mpegts.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index 3fe6aa4..3aa616a 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -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;



More information about the ffmpeg-cvslog mailing list