Skip to content
Snippets Groups Projects
Commit d03eefae authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

avfilter/vf_dejudder: Use av_mallocz_array()

parent 263aeb82
Branches
Tags
No related merge requests found
...@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment