Commit 29a5f132 authored by Cheng Sun's avatar Cheng Sun Committed by Jean-Baptiste Kempf

ball: zero-initialize video_format_t to prevent crash with packed chroma.

The ball filter requires that fmt_comp.video.p_palette is NULL, otherwise
image_HandlerDelete tries to free it.
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent f15ce264
...@@ -548,6 +548,7 @@ static void FilterBall( filter_t *p_filter, picture_t *p_inpic, ...@@ -548,6 +548,7 @@ static void FilterBall( filter_t *p_filter, picture_t *p_inpic,
picture_t *p_converted; picture_t *p_converted;
video_format_t fmt_comp; video_format_t fmt_comp;
memset( &fmt_comp, 0, sizeof(fmt_comp) );
switch( p_filter->fmt_in.video.i_chroma ) switch( p_filter->fmt_in.video.i_chroma )
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment