Commit 89c4c011 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

mux:asf: fix unchecked memory allocation

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 382f53fa
......@@ -346,6 +346,8 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
}
tk = p_input->p_sys = malloc( sizeof( asf_track_t ) );
if( unlikely(p_input->p_sys == NULL) )
return VLC_ENOMEM;
memset( tk, 0, sizeof( *tk ) );
tk->i_cat = p_input->p_fmt->i_cat;
tk->i_sequence = 0;
......
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