Commit 8fe6c20c authored by Jean-Paul Saman's avatar Jean-Paul Saman

avformat/mux.c: Check malloc return value.

parent c4b2a84b
......@@ -128,6 +128,8 @@ int OpenMux( vlc_object_t *p_this )
p_mux->pf_delstream = DelStream;
p_mux->pf_mux = Mux;
p_mux->p_sys = p_sys = malloc( sizeof( sout_mux_sys_t ) );
if( !p_sys )
return VLC_ENOMEM;
p_sys->oc = avformat_alloc_context();
p_sys->oc->oformat = file_oformat;
......
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