[vlc-devel] [PATCH 30/48] invert: reject 0 bpp formats

Rémi Denis-Courmont remi at remlab.net
Tue Jul 2 19:51:56 CEST 2013


---
 modules/video_filter/invert.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_filter/invert.c b/modules/video_filter/invert.c
index 681c992..ab2973e 100644
--- a/modules/video_filter/invert.c
+++ b/modules/video_filter/invert.c
@@ -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->pixel_size == 0
      || p_chroma->pixel_size * 8 != p_chroma->pixel_bits )
         return VLC_EGENERIC;
 
-- 
1.8.3.2




More information about the vlc-devel mailing list