]> git.sesse.net Git - ffmpeg/commitdiff
lavfi/scale_qsv: change alignment to be 16 bytes
authorZhong Li <zhong.li@intel.com>
Tue, 30 Jul 2019 14:54:08 +0000 (22:54 +0800)
committerZhong Li <zhong.li@intel.com>
Tue, 20 Aug 2019 05:38:12 +0000 (13:38 +0800)
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>
libavfilter/vf_scale_qsv.c

index 499534e30d5ad9c56d39cd98d5ab6e6ebad034f4..3cc05b64f3e3a9480d1708fa3a2def11b66af083 100644 (file)
@@ -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;