Commit c64f80b0 authored by Zohar Kelrich's avatar Zohar Kelrich Committed by Luca Barbato

mpegts: Reset continuity counter on seek

Signed-off-by: 's avatarZohar Kelrich <lumimies@gmail.com>
Signed-off-by: 's avatarLuca Barbato <lu_zero@gentoo.org>
parent 8b9df201
......@@ -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 */
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment