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

packetizer_helper: add missing alloc check

parent 9884290f
No related branches found
No related tags found
1 merge request!4811packetizer_helper: missing alloc check
Pipeline #430357 passed with stage
in 14 minutes and 55 seconds
......@@ -181,6 +181,11 @@ static block_t *packetizer_PacketizeBlock( packetizer_t *p_pack, block_t **pp_bl
block_t *p_block_bytestream = p_pack->bytestream.p_block;
p_pic = block_Alloc( p_pack->i_offset + p_pack->i_au_prepend );
if( p_pic == NULL )
{
p_pack->i_state = STATE_NOSYNC;
return NULL;
}
p_pic->i_pts = p_block_bytestream->i_pts;
p_pic->i_dts = p_block_bytestream->i_dts;
......
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