avfilter/vf_dejudder: Use av_mallocz_array()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-06-13 23:14:38 +02:00
parent 263aeb826d
commit d03eefae4a
1 changed files with 1 additions and 1 deletions

View 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);