Commit 564c6b21 authored by Thomas Guillem's avatar Thomas Guillem

chroma: i420_nv12: check CopyInitCache return value

(cherry picked from commit d869a084)
Signed-off-by: Thomas Guillem's avatarThomas Guillem <thomas@gllm.fr>
parent f41070ef
......@@ -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