Skip to content
Snippets Groups Projects
Commit 1bd12377 authored by François Cartegnie's avatar François Cartegnie :fingers_crossed: Committed by Steve Lhomme
Browse files

demux: ts: add delta to PES over aggregation check

Works around bogus encoders
refs #28649
parent 259d38b0
No related branches found
No related tags found
1 merge request!5457demux: ts: add delta to PES over aggregation check
Pipeline #474714 passed with warnings with stage
in 35 minutes and 39 seconds
......@@ -111,7 +111,10 @@ static bool ts_pes_Push( ts_pes_parse_callback *cb,
{
/* too early unit start resulting from packet loss */
/* or ending on a pkt not belonging to PES (%15 packets loss) */
i_flags |= BLOCK_FLAG_CORRUPTED;
/* But some encoders can't compute PES size right #28649 :/ */
if( p_pes->gather.i_gathered < p_pes->gather.i_data_size ||
p_pes->gather.i_gathered > p_pes->gather.i_data_size + 16 )
i_flags |= BLOCK_FLAG_CORRUPTED;
}
/* Flush the pes from pid */
p_pes->gather.p_data = NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment