Commit 760f4681 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

zvbi: Don't write in es_format_t::video_format_t when i_cat is SPU

This fixes a crash where we would end up passing VLC_CODEC_TEXT or
VLC_CODEC_RGBA to free()
parent 8f269757
......@@ -278,9 +278,9 @@ static int Open( vlc_object_t *p_this )
es_format_Init( &p_dec->fmt_out, SPU_ES, VLC_CODEC_SPU );
if( p_sys->b_text )
p_dec-> = VLC_CODEC_TEXT;
p_dec->fmt_out.i_codec = VLC_CODEC_TEXT;
p_dec-> = VLC_CODEC_RGBA;
p_dec->fmt_out.i_codec = VLC_CODEC_RGBA;
p_dec->pf_decode = Decode;
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