aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter
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 17:05:13 +0100
commitd984b29b21f6442fb6a809c08c07533dd496b1f9 (patch)
tree36fb095c10ec7530a843d69796aca67662bef4a6 /libavfilter
parenta23a56e77c0c2059f27baa194abc3213aee8825f (diff)
downloadffmpeg-d984b29b21f6442fb6a809c08c07533dd496b1f9.tar.gz
vf_hwmap: Add missing error code
Fixes CID 1412854. (cherry picked from commit 5635c80bf59d90e63ede473e2c014647850a8446)
Diffstat (limited to 'libavfilter')
-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 c40ed4baf7..4f6f69a7aa 100644
--- a/libavfilter/vf_hwmap.c
+++ b/libavfilter/vf_hwmap.c
@@ -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;
}