mirror of
https://github.com/librempeg/librempeg
synced 2024-11-22 09:02:20 +00: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