summaryrefslogtreecommitdiff
path: root/libavfilter/vf_scale_qsv.c
diff options
context:
space:
mode:
authorArtem Galin <artem.galin@intel.com>2021-08-20 22:48:09 +0100
committerJames Almer <jamrial@gmail.com>2021-09-08 17:48:32 -0300
commitc1cebaa4c495666ecd27f0dfe7f175e2f0185f7a (patch)
treee73725c30e5a6a4d57e5a0c1c439212dbefbcaf3 /libavfilter/vf_scale_qsv.c
parent46c6946eeea8bb213c4f9b5b1f1aecfdfab5454e (diff)
libavfilter/vf_scale_qsv: add MFX_MEMTYPE_FROM_VPPOUT flag to frame_type
In case of DX11 device type, Media SDK is sensitive to these flags. Signed-off-by: Artem Galin <artem.galin@intel.com>
Diffstat (limited to 'libavfilter/vf_scale_qsv.c')
-rw-r--r--libavfilter/vf_scale_qsv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_scale_qsv.c b/libavfilter/vf_scale_qsv.c
index fe8ed37418..2ab04457a9 100644
--- a/libavfilter/vf_scale_qsv.c
+++ b/libavfilter/vf_scale_qsv.c
@@ -202,7 +202,7 @@ static int init_out_pool(AVFilterContext *ctx,
out_frames_ctx->sw_format = out_format;
out_frames_ctx->initial_pool_size = 4;
- out_frames_hwctx->frame_type = in_frames_hwctx->frame_type;
+ out_frames_hwctx->frame_type = in_frames_hwctx->frame_type | MFX_MEMTYPE_FROM_VPPOUT;
ret = ff_filter_init_hw_frames(ctx, outlink, 32);
if (ret < 0)