[vlc-devel] [PATCH 37/42] wall: reject 0 bpp formats
Rémi Denis-Courmont
remi at remlab.net
Fri Jun 28 20:30:25 CEST 2013
---
modules/video_filter/wall.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/modules/video_filter/wall.c b/modules/video_filter/wall.c
index 8c965ab..ea2cab6 100644
--- a/modules/video_filter/wall.c
+++ b/modules/video_filter/wall.c
@@ -123,6 +123,11 @@ static int Open( vlc_object_t *p_this )
video_splitter_t *p_splitter = (video_splitter_t*)p_this;
video_splitter_sys_t *p_sys;
+ const vlc_chroma_description_t *p_chroma =
+ vlc_fourcc_GetChromaDescription( p_splitter->fmt.i_chroma );
+ if( p_chroma == NULL || p_chroma->pixel_size == 0 )
+ return VLC_EGENERIC;
+
p_splitter->p_sys = p_sys = malloc( sizeof(*p_sys) );
if( !p_sys )
return VLC_ENOMEM;
--
1.8.3.1
More information about the vlc-devel
mailing list