}
/* Allocate the memory needed to store the decoder's structure */
- if( ( p_dec->p_sys = p_sys =
- (decoder_sys_t *)malloc(sizeof(decoder_sys_t)) ) == NULL )
+ if( ( p_dec->p_sys = p_sys = malloc( sizeof(*p_sys) ) ) == NULL )
return VLC_ENOMEM;
/* Open a faad context */
p_dec->fmt_in.i_extra,
&i_rate, &i_channels ) < 0 )
{
+ msg_Err( p_dec, "Failed to initialize faad using extra data" );
return VLC_EGENERIC;
}