Fixed a segfault/division by zero caused by delayed headers in LOAS

format audio. 
parent ea869b5e
...@@ -750,7 +750,7 @@ static int LOASParse( decoder_t *p_dec, uint8_t *p_buffer, int i_buffer ) ...@@ -750,7 +750,7 @@ static int LOASParse( decoder_t *p_dec, uint8_t *p_buffer, int i_buffer )
} }
/* Wait for the configuration */ /* Wait for the configuration */
if( !p_sys->b_latm_cfg ) if( !p_sys->b_latm_cfg )
return -1; return 0;
/* FIXME do we need to split the subframe into independant packet ? */ /* FIXME do we need to split the subframe into independant packet ? */
if( p_sys->latm.i_sub_frames > 1 ) if( p_sys->latm.i_sub_frames > 1 )
......
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