From e7040600dc2eba3338f5878ef60344a5361f1537 Mon Sep 17 00:00:00 2001 From: Thomas Guillem Date: Fri, 16 Mar 2018 09:50:13 +0100 Subject: [PATCH] video_filter: puzzle: no > 8bits support Since memset is used to set back pixels. --- modules/video_filter/puzzle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/video_filter/puzzle.c b/modules/video_filter/puzzle.c index 2a041986b1..37e6a8b4c2 100644 --- a/modules/video_filter/puzzle.c +++ b/modules/video_filter/puzzle.c @@ -138,7 +138,7 @@ static int Open( vlc_object_t *p_this ) 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 ) + if( p_chroma == NULL || p_chroma->plane_count == 0 || p_chroma->pixel_size > 1 ) return VLC_EGENERIC; /* Allocate structure */ -- 2.11.4.GIT