aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mpegts.c
diff options
context:
space:
mode:
authorZohar Kelrich <lumimies@gmail.com>2011-07-24 11:13:50 +0300
committerLuca Barbato <lu_zero@gentoo.org>2011-08-02 02:43:22 +0200
commitc64f80b0e85ad138fca300f05278263bd713d27a (patch)
tree50e2b5a44f0ee8c2aa7ef3ea79cc3117ae735497 /libavformat/mpegts.c
parent8b9df201dfb2fa557b5dfc4e04c927d3f13a0dd9 (diff)
downloadffmpeg-c64f80b0e85ad138fca300f05278263bd713d27a.tar.gz
mpegts: Reset continuity counter on seek
Signed-off-by: Zohar Kelrich <lumimies@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavformat/mpegts.c')
-rw-r--r--libavformat/mpegts.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index 13b31177a5..f3b76aa264 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -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 */
}