Commit e79b939b authored by Tristan Matthews's avatar Tristan Matthews

opus: avoid NULL pointer dereference

parent fbfe10b4
......@@ -360,14 +360,15 @@ static void *ProcessPacket( decoder_t *p_dec, ogg_packet *p_oggpacket,
*pp_block = NULL; /* To avoid being fed the same packet again */
{
block_t *p_aout_buffer = DecodePacket( p_dec, p_oggpacket,
p_block->i_nb_samples,
(int)p_block->i_length );
if( !p_block )
return NULL;
block_Release( p_block );
return p_aout_buffer;
}
block_t *p_aout_buffer = DecodePacket( p_dec, p_oggpacket,
p_block->i_nb_samples,
(int)p_block->i_length );
block_Release( p_block );
return p_aout_buffer;
}
/*****************************************************************************
......
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