Commit 833187d4 authored by Zhao Zhili's avatar Zhao Zhili Committed by Thomas Guillem

codec: spudec: check malloc

Signed-off-by: Thomas Guillem's avatarThomas Guillem <>
parent 463eda98
......@@ -78,6 +78,8 @@ static int OpenCommon( vlc_object_t *p_this, bool b_packetizer )
p_dec->p_sys = p_sys = malloc( sizeof( decoder_sys_t ) );
if( !p_sys )
return VLC_ENOMEM;
p_sys->b_packetizer = b_packetizer;
p_sys->b_disabletrans = var_InheritBool( p_dec, "dvdsub-transparency" );
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