avfilter/vf_dejudder: Use av_mallocz_array()
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 13 Jun 2014 21:14:38 +0000 (23:14 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 13 Jun 2014 21:14:38 +0000 (23:14 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/vf_dejudder.c

index 1d96c39..ab525b6 100644 (file)
@@ -95,7 +95,7 @@ static av_cold int dejudder_init(AVFilterContext *ctx)
 {
     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)
         return AVERROR(ENOMEM);