Commit 9b390db4 authored by François Cartegnie's avatar François Cartegnie 🤞

demux: ts: fix potential null deref (cid #1412981)

parent 521ad335
......@@ -251,7 +251,7 @@ static block_t * SL_stream_processor_Push( ts_stream_processor_t *h, uint8_t i_s
}
block_ChainLastAppend( &ctx->pp_au_last, p_block );
p_block = NULL;
if( header.b_au_end )
if( header.b_au_end && ctx->p_au )
{
p_block = block_ChainGather( ctx->p_au );
ctx->p_au = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment