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, ...@@ -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 */ *pp_block = NULL; /* To avoid being fed the same packet again */
{ if( !p_block )
block_t *p_aout_buffer = DecodePacket( p_dec, p_oggpacket, return NULL;
p_block->i_nb_samples,
(int)p_block->i_length );
block_Release( p_block ); block_t *p_aout_buffer = DecodePacket( p_dec, p_oggpacket,
return p_aout_buffer; 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