mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-28 12:32:17 +02:00
lavf/mpegts: mark packets with TEI flag as corrupted
This commit is contained in:
parent
f7617d4b83
commit
2e391a576c
@ -2296,6 +2296,14 @@ static int handle_packet(MpegTSContext *ts, const uint8_t *packet)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (packet[1] & 0x80) {
|
||||||
|
av_log(ts->stream, AV_LOG_DEBUG, "Packet had TEI flag set; marking as corrupt\n");
|
||||||
|
if (tss->type == MPEGTS_PES) {
|
||||||
|
PESContext *pc = tss->u.pes_filter.opaque;
|
||||||
|
pc->flags |= AV_PKT_FLAG_CORRUPT;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
p = packet + 4;
|
p = packet + 4;
|
||||||
if (has_adaptation) {
|
if (has_adaptation) {
|
||||||
int64_t pcr_h;
|
int64_t pcr_h;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user