mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avfilter/vf_libvmaf: Check for av_frame_alloc failure
Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Limin Wang <lance.lmwang@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
df912bbc5f
commit
8aa143eaa8
@ -235,6 +235,9 @@ static av_cold int init(AVFilterContext *ctx)
|
||||
|
||||
s->gref = av_frame_alloc();
|
||||
s->gmain = av_frame_alloc();
|
||||
if (!s->gref || !s->gmain)
|
||||
return AVERROR(ENOMEM);
|
||||
|
||||
s->error = 0;
|
||||
|
||||
s->vmaf_thread_created = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user