Commit 05fbba35 authored by François Cartegnie's avatar François Cartegnie 🤞
Browse files

packetizer: h264: missing leak handling

should not happen anyway
parent 3ca55ff9
......@@ -733,7 +733,10 @@ static void PutSPS( decoder_t *p_dec, block_t *p_frag )
size_t i_buffer = p_frag->i_buffer;
if( !hxxx_strip_AnnexB_startcode( &p_buffer, &i_buffer ) )
{
block_Release( p_frag );
return;
}
h264_sequence_parameter_set_t *p_sps = h264_decode_sps( p_buffer, i_buffer, true );
if( !p_sps )
......@@ -811,7 +814,10 @@ static void PutPPS( decoder_t *p_dec, block_t *p_frag )
size_t i_buffer = p_frag->i_buffer;
if( !hxxx_strip_AnnexB_startcode( &p_buffer, &i_buffer ) )
{
block_Release( p_frag );
return;
}
h264_picture_parameter_set_t *p_pps = h264_decode_pps( p_buffer, i_buffer, true );
if( !p_pps )
......
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