From 9e018b813519d36aeeae7d6550a2a015c441f34a Mon Sep 17 00:00:00 2001 From: Chandler Chen Date: Tue, 30 Aug 2022 18:00:04 +0800 Subject: [PATCH] [mpi_enc_test]: modify mdinfo_size fix vepu540c pagefault Signed-off-by: Chandler Chen Change-Id: I2c5b5a6184ae01c20047bb9285b47850ae5fe77e --- test/mpi_enc_test.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/mpi_enc_test.c b/test/mpi_enc_test.c index 1ae1f261..0bda74ed 100644 --- a/test/mpi_enc_test.c +++ b/test/mpi_enc_test.c @@ -176,10 +176,10 @@ MPP_RET test_ctx_init(MpiEncMultiCtxInfo *info) p->fps_out_den = cmd->fps_out_den; p->fps_out_num = cmd->fps_out_num; p->mdinfo_size = (MPP_VIDEO_CodingHEVC == cmd->type) ? + (MPP_ALIGN(p->hor_stride, 32) >> 5) * + (MPP_ALIGN(p->ver_stride, 32) >> 5) * 16 : (MPP_ALIGN(p->hor_stride, 64) >> 6) * - (MPP_ALIGN(p->ver_stride, 64) >> 6) * 32 : - (MPP_ALIGN(p->hor_stride, 64) >> 6) * - (MPP_ALIGN(p->ver_stride, 16) >> 4) * 8; + (MPP_ALIGN(p->ver_stride, 16) >> 4) * 16; if (cmd->file_input) { if (!strncmp(cmd->file_input, "/dev/video", 10)) {