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

Michael Niedermayer git at videolan.org
Mon Jun 1 12:46:44 CEST 2015


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

avformat/mpegts: reset last_version on seeking

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

Conflicts:

	libavformat/mpegts.c

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

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

 libavformat/mpegts.c |   12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index 0b35b84..3f06c57 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -2170,11 +2170,13 @@ static int handle_packets(MpegTSContext *ts, int nb_packets)
         for (i = 0; i < NB_PID_MAX; i++) {
             if (ts->pids[i]) {
                 if (ts->pids[i]->type == MPEGTS_PES) {
-                   PESContext *pes = ts->pids[i]->u.pes_filter.opaque;
-                   av_buffer_unref(&pes->buffer);
-                   pes->data_index = 0;
-                   pes->state = MPEGTS_SKIP; /* skip until pes header */
-                   pes->last_pcr = -1;
+                    PESContext *pes = ts->pids[i]->u.pes_filter.opaque;
+                    av_buffer_unref(&pes->buffer);
+                    pes->data_index = 0;
+                    pes->state = MPEGTS_SKIP; /* skip until pes header */
+                    pes->last_pcr = -1;
+                } else if (ts->pids[i]->type == MPEGTS_SECTION) {
+                    ts->pids[i]->u.section_filter.last_ver = -1;
                 }
                 ts->pids[i]->last_cc = -1;
             }



More information about the ffmpeg-cvslog mailing list