mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-17 06:30:41 +08:00
[h264e]: fix the alignment check
The encoder only require the stride is align with 8 bytes. Change-Id: I3206b06af5427216c9e7a121424afda5297f7b62 Signed-off-by: Randy Li <randy.li@rock-chips.com>
This commit is contained in:
@@ -821,8 +821,8 @@ MPP_RET h264e_vpu_update_hw_cfg(H264eHalContext *ctx, HalEncTask *task,
|
||||
hw_cfg->height = prep->height;
|
||||
hw_cfg->input_format = prep->format;
|
||||
|
||||
mpp_assert(prep->hor_stride == MPP_ALIGN(prep->width, 16));
|
||||
mpp_assert(prep->ver_stride == MPP_ALIGN(prep->height, 16));
|
||||
mpp_assert(prep->hor_stride == MPP_ALIGN(prep->width, 8));
|
||||
mpp_assert(prep->ver_stride == MPP_ALIGN(prep->height, 8));
|
||||
|
||||
hw_cfg->hor_stride = prep->hor_stride;
|
||||
hw_cfg->ver_stride = prep->ver_stride;
|
||||
|
Reference in New Issue
Block a user