[mpi_enc_test]: modify mdinfo_size

fix vepu540c pagefault

Signed-off-by: Chandler Chen <chandler.chen@rock-chips.com>
Change-Id: I2c5b5a6184ae01c20047bb9285b47850ae5fe77e
This commit is contained in:
Chandler Chen
2022-08-30 18:00:04 +08:00
committed by Herman Chen
parent da63fea543
commit 9e018b8135

View File

@@ -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)) {