mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-24 00:02:52 +00:00
avfilter/vsrc_mandelbrot: use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
565c321cd0
commit
3af7e7b501
@ -130,9 +130,9 @@ static av_cold int init(AVFilterContext *ctx)
|
||||
|
||||
mb->cache_allocated = mb->w * mb->h * 3;
|
||||
mb->cache_used = 0;
|
||||
mb->point_cache= av_malloc(sizeof(*mb->point_cache)*mb->cache_allocated);
|
||||
mb-> next_cache= av_malloc(sizeof(*mb-> next_cache)*mb->cache_allocated);
|
||||
mb-> zyklus = av_malloc(sizeof(*mb->zyklus) * (mb->maxiter+16));
|
||||
mb->point_cache= av_malloc_array(mb->cache_allocated, sizeof(*mb->point_cache));
|
||||
mb-> next_cache= av_malloc_array(mb->cache_allocated, sizeof(*mb-> next_cache));
|
||||
mb-> zyklus = av_malloc_array(mb->maxiter + 16, sizeof(*mb->zyklus));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user