Commit b824b989 authored by François Cartegnie's avatar François Cartegnie 🤞
Browse files

demux: stl: fix NULL deref on decoder failure

parent 6b58d87b
......@@ -224,11 +224,16 @@ static int Open(vlc_object_t *object)
fmt.p_extra = header;
sys->es = es_out_Add(demux->out, &fmt);
fmt.i_extra = 0;
fmt.p_extra = NULL;
es_format_Clean(&fmt);
if(sys->es == NULL)
{
Close(object);
return VLC_EGENERIC;
}
demux->p_sys = sys;
demux->pf_demux = Demux;
demux->pf_control = Control;
......
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