]> git.sesse.net Git - vlc/blobdiff - modules/video_filter/bluescreen.c
Added an access using avformat protocol support.
[vlc] / modules / video_filter / bluescreen.c
index d889b540c9a8a30b1de51ef0f439bdf1febc7487..a658c36a00b797642f8666c82614ca70dda108ed 100644 (file)
 # 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 " \
@@ -188,9 +185,8 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
         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 );