Browse Source

avfilter/af_ashowinfo: Use av_realloc_array()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.6
Michael Niedermayer 11 years ago
parent
commit
081e117bfe
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavfilter/af_ashowinfo.c

+ 1
- 1
libavfilter/af_ashowinfo.c View File

@@ -159,7 +159,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
int data_size = buf->nb_samples * block_align;
int planes = planar ? channels : 1;
int i;
void *tmp_ptr = av_realloc(s->plane_checksums, channels * sizeof(*s->plane_checksums));
void *tmp_ptr = av_realloc_array(s->plane_checksums, channels, sizeof(*s->plane_checksums));

if (!tmp_ptr)
return AVERROR(ENOMEM);


Loading…
Cancel
Save