Commit 081e117b authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter/af_ashowinfo: Use av_realloc_array()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 48895a23
...@@ -159,7 +159,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf) ...@@ -159,7 +159,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
int data_size = buf->nb_samples * block_align; int data_size = buf->nb_samples * block_align;
int planes = planar ? channels : 1; int planes = planar ? channels : 1;
int i; 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) if (!tmp_ptr)
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment