提交 d984b29b 编写于 作者: M Mark Thompson

vf_hwmap: Add missing error code

Fixes CID 1412854.

(cherry picked from commit 5635c80b)
上级 a23a56e7
......@@ -77,6 +77,7 @@ static int hwmap_config_output(AVFilterLink *outlink)
type = av_hwdevice_find_type_by_name(ctx->derive_device_type);
if (type == AV_HWDEVICE_TYPE_NONE) {
av_log(avctx, AV_LOG_ERROR, "Invalid device type.\n");
err = AVERROR(EINVAL);
goto fail;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册