提交 cd821c18 编写于 作者: J James Almer

avcodec/cuviddec: unref output frame on failure

Signed-off-by: NJames Almer <jamrial@gmail.com>
上级 eadf7e3a
......@@ -634,6 +634,9 @@ FF_ENABLE_DEPRECATION_WARNINGS
}
error:
if (ret < 0)
av_frame_unref(frame);
if (mapped_frame)
eret = CHECK_CU(ctx->cvdl->cuvidUnmapVideoFrame(ctx->cudecoder, mapped_frame));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册