Commit 3986d69c authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

wall: reject 0 planes formats

parent 967c9bad
......@@ -123,6 +123,11 @@ static int Open( vlc_object_t *p_this )
video_splitter_t *p_splitter = (video_splitter_t*)p_this;
video_splitter_sys_t *p_sys;
const vlc_chroma_description_t *p_chroma =
vlc_fourcc_GetChromaDescription( p_splitter->fmt.i_chroma );
if( p_chroma == NULL || p_chroma->plane_count == 0 )
return VLC_EGENERIC;
p_splitter->p_sys = p_sys = malloc( sizeof(*p_sys) );
if( !p_sys )
return VLC_ENOMEM;
......
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