Commit 21601de5 authored by François Cartegnie's avatar François Cartegnie 🤞

vlc_block_helper: fix null deref (cid #1400161)

parent 06e7c4bd
......@@ -138,7 +138,8 @@ static inline block_t *block_BytestreamPop( block_bytestream_t *p_bytestream )
p_block = p_block->p_next;
p_block_old->p_next = NULL;
p_bytestream->pp_last = &p_block_old->p_next;
p_bytestream->i_total -= p_block->i_buffer;
if( p_block )
p_bytestream->i_total -= p_block->i_buffer;
return p_block;
}
......
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