Commit a8a3f406 authored by Jean-Paul Saman's avatar Jean-Paul Saman Committed by Jean-Baptiste Kempf

avformat/mux.c: Check malloc return value.

(cherry picked from commit 8fe6c20c7a040796758a684c54220a7a365b84b0)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 1c61401f
......@@ -127,6 +127,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