OSDN Git Service

mpegts: Reset continuity counter on seek
authorZohar Kelrich <lumimies@gmail.com>
Sun, 24 Jul 2011 08:13:50 +0000 (11:13 +0300)
committerLuca Barbato <lu_zero@gentoo.org>
Tue, 2 Aug 2011 00:43:22 +0000 (02:43 +0200)
Signed-off-by: Zohar Kelrich <lumimies@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavformat/mpegts.c

index 13b3117..f3b76aa 100644 (file)
@@ -1625,6 +1625,7 @@ static int mpegts_read_packet(AVFormatContext *s,
             if (ts->pids[i] && ts->pids[i]->type == MPEGTS_PES) {
                 PESContext *pes = ts->pids[i]->u.pes_filter.opaque;
                 av_freep(&pes->buffer);
+                ts->pids[i]->last_cc = -1;
                 pes->data_index = 0;
                 pes->state = MPEGTS_SKIP; /* skip until pes header */
             }