diff options
author | Mark Thompson <sw@jkqxz.net> | 2017-06-25 22:13:03 +0100 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2017-11-22 23:18:42 +0000 |
commit | 5514bab37a26f36753b756a2f0ceb837d055850f (patch) | |
tree | ee823e86cf076bc5c4240328e2630faa1d1d1e41 /libavfilter/vf_hwmap.c | |
parent | 7faa8d8b03832e9f1c67029c859db5af82897a48 (diff) | |
download | ffmpeg-5514bab37a26f36753b756a2f0ceb837d055850f.tar.gz |
vf_hwmap: Pass mapping mode when deriving frames context on an existing device
To match creation on a newly-derived device. (This was missed earlier
because the mode is only used in some cases.)
Diffstat (limited to 'libavfilter/vf_hwmap.c')
-rw-r--r-- | libavfilter/vf_hwmap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/vf_hwmap.c b/libavfilter/vf_hwmap.c index 8277241dc4..d5fc3c46e6 100644 --- a/libavfilter/vf_hwmap.c +++ b/libavfilter/vf_hwmap.c @@ -114,7 +114,8 @@ static int hwmap_config_output(AVFilterLink *outlink) err = av_hwframe_ctx_create_derived(&ctx->hwframes_ref, outlink->format, device, - inlink->hw_frames_ctx, 0); + inlink->hw_frames_ctx, + ctx->mode); if (err < 0) { av_log(avctx, AV_LOG_ERROR, "Failed to create derived " "frames context: %d.\n", err); |