Commit 41c3b400 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

mux:mpeg:ps: fix unchecked memory allocation

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 89c4c011
......@@ -267,6 +267,8 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
(char*)&p_input->p_fmt->i_codec );
p_input->p_sys = p_stream = malloc( sizeof( ps_stream_t ) );
if( unlikely(p_input->p_sys == NULL) )
return VLC_ENOMEM;
p_stream->i_stream_type = 0x81;
/* Init this new stream */
......
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