mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-01 05:31:04 +08:00
mpegts: Reset continuity counter on seek
Signed-off-by: Zohar Kelrich <lumimies@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:

committed by
Luca Barbato

parent
8b9df201df
commit
c64f80b0e8
@ -1625,6 +1625,7 @@ static int mpegts_read_packet(AVFormatContext *s,
|
|||||||
if (ts->pids[i] && ts->pids[i]->type == MPEGTS_PES) {
|
if (ts->pids[i] && ts->pids[i]->type == MPEGTS_PES) {
|
||||||
PESContext *pes = ts->pids[i]->u.pes_filter.opaque;
|
PESContext *pes = ts->pids[i]->u.pes_filter.opaque;
|
||||||
av_freep(&pes->buffer);
|
av_freep(&pes->buffer);
|
||||||
|
ts->pids[i]->last_cc = -1;
|
||||||
pes->data_index = 0;
|
pes->data_index = 0;
|
||||||
pes->state = MPEGTS_SKIP; /* skip until pes header */
|
pes->state = MPEGTS_SKIP; /* skip until pes header */
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user