Commit d869a084 authored by Thomas Guillem's avatar Thomas Guillem

chroma: i420_nv12: check CopyInitCache return value

parent 485f4173
......@@ -214,8 +214,10 @@ static int Create( vlc_object_t *p_this )
if (!p_sys)
return VLC_ENOMEM;
CopyInitCache( &p_sys->cache, ( p_filter->fmt_in.video.i_x_offset +
p_filter->fmt_in.video.i_visible_width ) * pixel_bytes );
if( CopyInitCache( &p_sys->cache, ( p_filter->fmt_in.video.i_x_offset +
p_filter->fmt_in.video.i_visible_width ) * pixel_bytes ) )
return VLC_ENOMEM;
p_filter->p_sys = p_sys;
return 0;
......
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