Unified · Split
| @@ -134,6 +134,9 @@ static av_cold int init(AVFilterContext *ctx) · 133 unmodified lines | |||
| 134 | s-> next_cache= av_malloc_array(s->cache_allocated, sizeof(*s-> next_cache)); | 134 | s-> next_cache= av_malloc_array(s->cache_allocated, sizeof(*s-> next_cache)); |
| 135 | s-> zyklus = av_malloc_array(s->maxiter + 16, sizeof(*s->zyklus)); | 135 | s-> zyklus = av_malloc_array(s->maxiter + 16, sizeof(*s->zyklus)); |
| 136 | 136 | ||
| 137 | if (!s->point_cache || !s->next_cache || !s->zyklus) | ||
| 138 | return AVERROR(ENOMEM); | ||
| 139 | |||
| 137 | return 0; | 140 | return 0; |
| 138 | } | 141 | } |
| 139 | 142 | ||