Commit ccc273b4 authored by François Cartegnie's avatar François Cartegnie 🤞

codec: faad: fail if no extradata

both packetizer and codec requiring extra
parent 73d73c4c
......@@ -130,6 +130,12 @@ static int Open( vlc_object_t *p_this )
return VLC_EGENERIC;
}
if ( !p_dec->fmt_in.i_extra )
{
msg_Err( p_dec, "cannot initialize faad wihtout codec extradata" );
return VLC_EGENERIC;
}
/* Allocate the memory needed to store the decoder's structure */
if( ( p_dec->p_sys = p_sys = malloc( sizeof(*p_sys) ) ) == NULL )
return VLC_ENOMEM;
......
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