Commit 4efa74c7 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

packetizer:copy: fix unchecked memory allocation

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <>
parent 41c3b400
......@@ -106,6 +106,9 @@ static int Open( vlc_object_t *p_this )
p_dec->p_sys = p_sys = malloc( sizeof(*p_sys) );
if (unlikely(p_sys == NULL))
return VLC_ENOMEM;
p_sys->p_block = NULL;
switch( p_dec->fmt_in.i_codec )
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