avformat/mpegts: reset last_version on seeking
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 6397814926
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -2293,6 +2293,8 @@ static int handle_packets(MpegTSContext *ts, int64_t nb_packets)
|
|||||||
av_buffer_unref(&pes->buffer);
|
av_buffer_unref(&pes->buffer);
|
||||||
pes->data_index = 0;
|
pes->data_index = 0;
|
||||||
pes->state = MPEGTS_SKIP; /* skip until pes header */
|
pes->state = MPEGTS_SKIP; /* skip until pes header */
|
||||||
|
} else if (ts->pids[i]->type == MPEGTS_SECTION) {
|
||||||
|
ts->pids[i]->u.section_filter.last_ver = -1;
|
||||||
}
|
}
|
||||||
ts->pids[i]->last_cc = -1;
|
ts->pids[i]->last_cc = -1;
|
||||||
ts->pids[i]->last_pcr = -1;
|
ts->pids[i]->last_pcr = -1;
|
||||||
|
Reference in New Issue
Block a user