[vlc-commits] avformat/mux.c: Check malloc return value.
Jean-Paul Saman
git at videolan.org
Sun May 6 03:05:06 CEST 2012
vlc/vlc-2.0 | branch: master | Jean-Paul Saman <jean-paul.saman at m2x.nl> | Tue Apr 24 10:45:10 2012 +0200| [a8a3f406da52584abee155c0eff5b9b0d6fc467e] | committer: Jean-Baptiste Kempf
avformat/mux.c: Check malloc return value.
(cherry picked from commit 8fe6c20c7a040796758a684c54220a7a365b84b0)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=a8a3f406da52584abee155c0eff5b9b0d6fc467e
---
modules/demux/avformat/mux.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/modules/demux/avformat/mux.c b/modules/demux/avformat/mux.c
index 1d6c6a4..a420462 100644
--- a/modules/demux/avformat/mux.c
+++ b/modules/demux/avformat/mux.c
@@ -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;
More information about the vlc-commits
mailing list