vlc | branch: master | Francois Cartegnie <[email protected]> | Fri Jun 6 19:40:25 2014 +0200| [ccc273b48cef823e1536d80904c1e080cac4f1aa] | committer: Francois Cartegnie
codec: faad: fail if no extradata both packetizer and codec requiring extra > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ccc273b48cef823e1536d80904c1e080cac4f1aa --- modules/codec/faad.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/codec/faad.c b/modules/codec/faad.c index 9aaaed6..aaf978a 100644 --- a/modules/codec/faad.c +++ b/modules/codec/faad.c @@ -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; _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
