Commit db79d8e8 authored by François Cartegnie's avatar François Cartegnie 🤞

packetizer: h264: check leading nal

parent c5eef850
......@@ -843,7 +843,8 @@ static block_t *OutputPicture( decoder_t *p_dec )
}
/* Now rebuild NAL Sequence, inserting PPS/SPS if any */
if( p_sys->leading.p_head->i_flags & BLOCK_FLAG_PRIVATE_AUD )
if( p_sys->leading.p_head &&
(p_sys->leading.p_head->i_flags & BLOCK_FLAG_PRIVATE_AUD) )
{
block_t *p_au = p_sys->leading.p_head;
p_sys->leading.p_head = p_au->p_next;
......
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