You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
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>
This commit is contained in:
@@ -202,7 +202,7 @@ static int init_out_pool(AVFilterContext *ctx,
|
|||||||
out_frames_ctx->sw_format = out_format;
|
out_frames_ctx->sw_format = out_format;
|
||||||
out_frames_ctx->initial_pool_size = 4;
|
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);
|
ret = ff_filter_init_hw_frames(ctx, outlink, 32);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
|
Reference in New Issue
Block a user