[vlc-commits] video_filter: puzzle: no > 8bits support
Thomas Guillem
git at videolan.org
Fri Mar 16 16:08:26 CET 2018
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Mar 16 09:50:13 2018 +0100| [e7040600dc2eba3338f5878ef60344a5361f1537] | committer: Thomas Guillem
video_filter: puzzle: no > 8bits support
Since memset is used to set back pixels.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e7040600dc2eba3338f5878ef60344a5361f1537
---
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 */
More information about the vlc-commits
mailing list