fix[enc_utils]: Support read odd resolution image

Change-Id: Ib6b9d9ebc9d552ee0fda0f3a14c77b2ae37881d8
Signed-off-by: Yanjun Liao <yanjun.liao@rock-chips.com>
This commit is contained in:
Yanjun Liao
2024-03-29 17:41:26 +08:00
committed by Herman Chen
parent 4cc3fb25f7
commit 01a86a21ca
2 changed files with 5 additions and 1 deletions

View File

@@ -613,7 +613,7 @@ MPP_RET mpi_enc_test_cmd_update_by_args(MpiEncTestArgs* cmd, int argc, char **ar
if (!cmd->hor_stride)
cmd->hor_stride = mpi_enc_width_default_stride(cmd->width, cmd->format);
if (!cmd->ver_stride)
cmd->ver_stride = cmd->height;
cmd->ver_stride = MPP_ALIGN(cmd->height, 2);
if (cmd->type_src == MPP_VIDEO_CodingUnused) {
if (cmd->width <= 0 || cmd->height <= 0 ||