Skip to content
Snippets Groups Projects
Commit 833187d4 authored by Zhao Zhili's avatar Zhao Zhili Committed by Thomas Guillem
Browse files

codec: spudec: check malloc


Signed-off-by: default avatarThomas Guillem <thomas@gllm.fr>
parent 463eda98
No related branches found
No related tags found
No related merge requests found
......@@ -78,6 +78,8 @@ static int OpenCommon( vlc_object_t *p_this, bool b_packetizer )
return VLC_EGENERIC;
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" );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment