Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -235,6 +235,9 @@ static av_cold int init(AVFilterContext *ctx) · 234 unmodified lines | ||
| 235 | 235 | |
| 236 | 236 | s->gref = av_frame_alloc(); |
| 237 | 237 | s->gmain = av_frame_alloc(); |
| 238 | + if (!s->gref || !s->gmain) | |
| 239 | + return AVERROR(ENOMEM); | |
| 240 | + | |
| 238 | 241 | s->error = 0; |
| 239 | 242 | |
| 240 | 243 | s->vmaf_thread_created = 0; |