1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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

View File

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