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

demux: subtitle: fix NULL deref on missing decoder

parent 3094599a
......@@ -598,8 +598,14 @@ static int Open ( vlc_object_t *p_this )
fmt.i_extra = strlen( p_sys->props.psz_header ) + 1;
fmt.p_extra = strdup( p_sys->props.psz_header );
}
p_sys->es = es_out_Add( p_demux->out, &fmt );
es_format_Clean( &fmt );
if( p_sys->es == NULL )
{
Close( p_this );
return VLC_EGENERIC;
}
return VLC_SUCCESS;
}
......
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