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

cropadd: reject 0 planes formats

parent 53163c23
......@@ -144,6 +144,11 @@ static int OpenFilter( 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;
p_filter->p_sys = (filter_sys_t *)malloc( sizeof( filter_sys_t ) );
if( !p_filter->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