diff options
author | Mark Thompson <sw@jkqxz.net> | 2017-06-16 23:08:47 +0100 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2017-06-18 17:05:13 +0100 |
commit | d984b29b21f6442fb6a809c08c07533dd496b1f9 (patch) | |
tree | 36fb095c10ec7530a843d69796aca67662bef4a6 /libavfilter/vf_hwmap.c | |
parent | a23a56e77c0c2059f27baa194abc3213aee8825f (diff) | |
download | ffmpeg-d984b29b21f6442fb6a809c08c07533dd496b1f9.tar.gz |
vf_hwmap: Add missing error code
Fixes CID 1412854.
(cherry picked from commit 5635c80bf59d90e63ede473e2c014647850a8446)
Diffstat (limited to 'libavfilter/vf_hwmap.c')
-rw-r--r-- | libavfilter/vf_hwmap.c | 1 |
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; } |