# include "config.h"
#endif
-#include <assert.h>
-
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_filter.h>
-#include <vlc_memory.h>
#define BLUESCREEN_HELP N_( \
"This effect, also known as \"greenscreen\" or \"chroma key\" blends " \
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;
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_or_free( p_sys->p_at,
- i_lines * i_pitch * sizeof( uint8_t ) );
- assert( p_sys->p_at );
+ 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 );