summaryrefslogtreecommitdiff
path: root/libavfilter/vf_scale_qsv.c
diff options
context:
space:
mode:
authorZhong Li <zhong.li@intel.com>2019-07-30 22:54:08 +0800
committerZhong Li <zhong.li@intel.com>2019-08-20 13:38:12 +0800
commitd252d1c2e987960be54488f962098af8bcdc4f60 (patch)
treef6294ddddce99826a544de15f8719795b27aed45 /libavfilter/vf_scale_qsv.c
parent655ff4708bfe160447b07d0cbae6b710666f0139 (diff)
lavfi/scale_qsv: change alignment to be 16 bytes
32 bytes alignment is not needed and increases the failure possibilty of SFC (low power scaling mode) Signed-off-by: Zhong Li <zhong.li@intel.com>
Diffstat (limited to 'libavfilter/vf_scale_qsv.c')
-rw-r--r--libavfilter/vf_scale_qsv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_scale_qsv.c b/libavfilter/vf_scale_qsv.c
index 499534e30d..3cc05b64f3 100644
--- a/libavfilter/vf_scale_qsv.c
+++ b/libavfilter/vf_scale_qsv.c
@@ -201,8 +201,8 @@ static int init_out_pool(AVFilterContext *ctx,
out_frames_hwctx = out_frames_ctx->hwctx;
out_frames_ctx->format = AV_PIX_FMT_QSV;
- out_frames_ctx->width = FFALIGN(out_width, 32);
- out_frames_ctx->height = FFALIGN(out_height, 32);
+ out_frames_ctx->width = FFALIGN(out_width, 16);
+ out_frames_ctx->height = FFALIGN(out_height, 16);
out_frames_ctx->sw_format = out_format;
out_frames_ctx->initial_pool_size = 4;