avfilter/vf_dejudder: Use av_mallocz_array()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/76/merge
Michael Niedermayer 11 years ago
parent 263aeb826d
commit d03eefae4a
  1. 2
      libavfilter/vf_dejudder.c

@ -95,7 +95,7 @@ static av_cold int dejudder_init(AVFilterContext *ctx)
{ {
DejudderContext *dj = ctx->priv; DejudderContext *dj = ctx->priv;
dj->ringbuff = av_mallocz(sizeof(*dj->ringbuff) * (dj->cycle+2)); dj->ringbuff = av_mallocz_array(dj->cycle+2, sizeof(*dj->ringbuff));
if (!dj->ringbuff) if (!dj->ringbuff)
return AVERROR(ENOMEM); return AVERROR(ENOMEM);

Loading…
Cancel
Save