[vlc-commits] video_filter: puzzle: no > 8bits support
    Thomas Guillem 
    git at videolan.org
       
    Mon Mar 19 12:15:32 CET 2018
    
    
  
vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Mar 16 09:50:13 2018 +0100| [0601cc20f2781a40f5e87e75ef9e10a2e58cca11] | committer: Thomas Guillem
video_filter: puzzle: no > 8bits support
Since memset is used to set back pixels.
(cherry picked from commit e7040600dc2eba3338f5878ef60344a5361f1537)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=0601cc20f2781a40f5e87e75ef9e10a2e58cca11
---
 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