[FFmpeg-cvslog] vf_hwmap: Add missing error code

Mark Thompson git at videolan.org
Sun Jun 18 19:14:05 EEST 2017


ffmpeg | branch: master | Mark Thompson <sw at jkqxz.net> | Fri Jun 16 23:08:47 2017 +0100| [d984b29b21f6442fb6a809c08c07533dd496b1f9] | committer: Mark Thompson

vf_hwmap: Add missing error code

Fixes CID 1412854.

(cherry picked from commit 5635c80bf59d90e63ede473e2c014647850a8446)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d984b29b21f6442fb6a809c08c07533dd496b1f9
---

 libavfilter/vf_hwmap.c | 1 +
 1 file changed, 1 insertion(+)

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;
             }
 



More information about the ffmpeg-cvslog mailing list