X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fvideo_filter%2Fbluescreen.c;h=378219168dc021cd2f2df4da2998fe332f0e7e74;hb=eca93931a367e3acedaa6028e8843552ced4a1d0;hp=41707d1813a02e64a7c1930838aaab5181121051;hpb=658686029ee756fbf4beb8e0cdcc4b0bc5dd18ed;p=vlc diff --git a/modules/video_filter/bluescreen.c b/modules/video_filter/bluescreen.c index 41707d1813..378219168d 100644 --- a/modules/video_filter/bluescreen.c +++ b/modules/video_filter/bluescreen.c @@ -31,8 +31,7 @@ #include #include - -#include "vlc_filter.h" +#include #define BLUESCREEN_HELP N_( \ "This effect, also known as \"greenscreen\" or \"chroma key\" blends " \ @@ -115,7 +114,7 @@ static int Create( vlc_object_t *p_this ) if( p_filter->fmt_in.video.i_chroma != VLC_CODEC_YUVA ) { msg_Err( p_filter, - "Unsupported input chroma \"%4s\". " + "Unsupported input chroma \"%4.4s\". " "Bluescreen can only use \"YUVA\".", (char*)&p_filter->fmt_in.video.i_chroma ); return VLC_EGENERIC; @@ -180,13 +179,14 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic ) if( p_pic->format.i_chroma != VLC_CODEC_YUVA ) { msg_Err( p_filter, - "Unsupported input chroma \"%4s\". " + "Unsupported input chroma \"%4.4s\". " "Bluescreen can only use \"YUVA\".", (char*)&p_pic->format.i_chroma ); return NULL; } - p_sys->p_at = realloc( p_sys->p_at, i_lines * i_pitch * sizeof( uint8_t ) ); + p_sys->p_at = xrealloc( p_sys->p_at, + i_lines * i_pitch * sizeof( uint8_t ) ); p_at = p_sys->p_at; vlc_mutex_lock( &p_sys->lock );