Commit 10e1f824 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

puzzle: reject 0 planes formats

parent beb19373
......@@ -134,6 +134,11 @@ int Open( vlc_object_t *p_this )
return VLC_EGENERIC;
}
const vlc_chroma_description_t *p_chroma =
vlc_fourcc_GetChromaDescription( p_filter->fmt_in.video.i_chroma );
if( p_chroma == NULL || p_chroma->plane_count == 0 )
return VLC_EGENERIC;
/* Allocate structure */
p_filter->p_sys = p_sys = calloc(1, sizeof( *p_sys ) );
if( !p_sys )
......
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