mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2024-12-25 20:32:10 +00:00
Skip the packet if the adaptation field length is broken
This commit is contained in:
parent
dfb7d8472c
commit
5f19a9f89d
@ -485,6 +485,13 @@ void ts_buffer_psi_packet(struct ccx_demuxer *ctx)
|
||||
ctx->PID_buffers[pid]->prev_ccounter=0xff;
|
||||
}
|
||||
|
||||
//skip the packet if the adaptation field legnth or payload length are out of bounds or broken
|
||||
if (adaptation_field_length > 184 || payload_length > 184) {
|
||||
payload_length = 0;
|
||||
dbg_print(CCX_DMT_GENERIC_NOTICES, "\rWarning: Bad packet, adaptation field too long, skipping.\n");
|
||||
|
||||
}
|
||||
|
||||
if(payload_start_indicator)
|
||||
{
|
||||
if(ctx->PID_buffers[pid]->ccounter>0)
|
||||
|
Loading…
Reference in New Issue
Block a user