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