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

invert: reject 0 planes formats

parent e3898bea
......@@ -72,7 +72,7 @@ static int Create( vlc_object_t *p_this )
const vlc_chroma_description_t *p_chroma =
vlc_fourcc_GetChromaDescription( fourcc );
if( p_chroma == NULL
if( p_chroma == NULL || p_chroma->plane_count == 0
|| p_chroma->pixel_size * 8 != p_chroma->pixel_bits )
return VLC_EGENERIC;
......
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