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:
parent
263aeb826d
commit
d03eefae4a
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user