aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_hwmap.c
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2017-06-16 23:08:47 +0100
committerMark Thompson <sw@jkqxz.net>2017-06-18 15:31:17 +0100
commit5635c80bf59d90e63ede473e2c014647850a8446 (patch)
treec58fb2a9292852d10dee1102ec9ad7d43def5e19 /libavfilter/vf_hwmap.c
parentd9da7151eef7fc469787e7298196cea291acfd82 (diff)
downloadffmpeg-5635c80bf59d90e63ede473e2c014647850a8446.tar.gz
vf_hwmap: Add missing error code
Diffstat (limited to 'libavfilter/vf_hwmap.c')
-rw-r--r--libavfilter/vf_hwmap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/vf_hwmap.c b/libavfilter/vf_hwmap.c
index 2983528ea0..48ebbb6bd6 100644
--- a/libavfilter/vf_hwmap.c
+++ b/libavfilter/vf_hwmap.c
@@ -73,6 +73,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;
}