mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-08 22:39:44 +02:00
avfilter/vsrc_mandelbrot: Check for malloc failure
Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit fbd22504c4148d2a01ccfe38df26c144f56db76b) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
519904111b
commit
1ea783dea6
@ -134,6 +134,9 @@ static av_cold int init(AVFilterContext *ctx)
|
||||
s-> next_cache= av_malloc_array(s->cache_allocated, sizeof(*s-> next_cache));
|
||||
s-> zyklus = av_malloc_array(s->maxiter + 16, sizeof(*s->zyklus));
|
||||
|
||||
if (!s->point_cache || !s->next_cache || !s->zyklus)
|
||||
return AVERROR(ENOMEM);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user