提交 8aa143ea 编写于 作者: L Limin Wang 提交者: Michael Niedermayer

avfilter/vf_libvmaf: Check for av_frame_alloc failure

Reviewed-by: NPaul B Mahol <onemda@gmail.com>
Signed-off-by: NLimin Wang <lance.lmwang@gmail.com>
Signed-off-by: NMichael Niedermayer <michael@niedermayer.cc>
上级 df912bbc
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册