[vlc-commits] invert: reject 0 planes formats
Rémi Denis-Courmont
git at videolan.org
Sun Jul 7 20:13:40 CEST 2013
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jun 23 09:12:21 2013 +0300| [d63fa40ddd7b462586f892d7d273e205ad770700] | committer: Rémi Denis-Courmont
invert: reject 0 planes formats
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d63fa40ddd7b462586f892d7d273e205ad770700
---
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..5f9107e 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->plane_count == 0
|| p_chroma->pixel_size * 8 != p_chroma->pixel_bits )
return VLC_EGENERIC;
More information about the vlc-commits
mailing list