Commit d03eefae authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter/vf_dejudder: Use av_mallocz_array()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 263aeb82
...@@ -95,7 +95,7 @@ static av_cold int dejudder_init(AVFilterContext *ctx) ...@@ -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);
......
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