Commit da686e46 authored by Rémi Duraffort's avatar Rémi Duraffort

Check malloc return value.

parent def276b7
......@@ -165,6 +165,9 @@ static int Open( vlc_object_t * p_this )
p_demux->pf_demux = Demux;
p_demux->pf_control = Control;
p_demux->p_sys = p_sys = malloc( sizeof( demux_sys_t ) );
if( !p_sys )
return VLC_EGENERIC;
p_sys->i_pcr = 1;
p_sys->b_y4m = b_y4m;
......
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