#include <math.h>
#include <limits.h> /* INT_MAX */
-#include <assert.h>
#include <vlc_filter.h>
#include <vlc_image.h>
-#include <vlc_memory.h>
-
#include "mosaic.h"
#define BLANK_DELAY INT64_C(1000000)
{
i_index++;
- p_sys->pi_x_offsets = realloc_or_free( p_sys->pi_x_offsets,
+ p_sys->pi_x_offsets = xrealloc( p_sys->pi_x_offsets,
i_index * sizeof(int) );
- assert( p_sys->pi_x_offsets );
p_sys->pi_x_offsets[i_index - 1] = atoi( psz_offsets );
psz_end = strchr( psz_offsets, ',' );
psz_offsets = psz_end + 1;
- p_sys->pi_y_offsets = realloc_or_free( p_sys->pi_y_offsets,
+ p_sys->pi_y_offsets = xrealloc( p_sys->pi_y_offsets,
i_index * sizeof(int) );
- assert( p_sys->pi_y_offsets );
p_sys->pi_y_offsets[i_index - 1] = atoi( psz_offsets );
psz_end = strchr( psz_offsets, ',' );
psz_offsets = psz_end + 1;
{
psz_end = strchr( psz_order, ',' );
i_index++;
- p_sys->ppsz_order = realloc_or_free( p_sys->ppsz_order,
+ p_sys->ppsz_order = xrealloc( p_sys->ppsz_order,
i_index * sizeof(char *) );
- assert( p_sys->ppsz_order );
p_sys->ppsz_order[i_index - 1] = strndup( psz_order,
psz_end - psz_order );
psz_order = psz_end+1;
{
psz_end = strchr( psz_order, ',' );
i_index++;
- p_sys->ppsz_order = realloc_or_free( p_sys->ppsz_order,
+ p_sys->ppsz_order = xrealloc( p_sys->ppsz_order,
i_index * sizeof(char *) );
- assert( p_sys->ppsz_order );
p_sys->ppsz_order[i_index - 1] = strndup( psz_order,
psz_end - psz_order );
psz_order = psz_end+1;