From 1bccabfcd417a1930275f0347c825e849380e1fc Mon Sep 17 00:00:00 2001 From: Herman Chen Date: Tue, 24 May 2022 11:31:08 +0800 Subject: [PATCH] [hal_h265e_vepu580]: Fix fbc stride error Change-Id: Idd043f73b9d0e61ebfd47f30e084da7f065bc260 Signed-off-by: Herman Chen --- mpp/hal/rkenc/h265e/hal_h265e_vepu580.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mpp/hal/rkenc/h265e/hal_h265e_vepu580.c b/mpp/hal/rkenc/h265e/hal_h265e_vepu580.c index 97cace87..3e29f103 100644 --- a/mpp/hal/rkenc/h265e/hal_h265e_vepu580.c +++ b/mpp/hal/rkenc/h265e/hal_h265e_vepu580.c @@ -1471,7 +1471,9 @@ static MPP_RET vepu580_h265_set_pp_regs(H265eV580RegSet *regs, VepuFmtCfg *fmt, reg_base->reg0203_src_proc.src_mirr = prep_cfg->mirroring > 0; reg_base->reg0203_src_proc.src_rot = prep_cfg->rotation; - if (prep_cfg->hor_stride) { + if (MPP_FRAME_FMT_IS_FBC(prep_cfg->format)) { + stridey = MPP_ALIGN(prep_cfg->width, 16); + } else if (prep_cfg->hor_stride) { stridey = prep_cfg->hor_stride; } else { if (fmt->format == VEPU541_FMT_BGRA8888 )