[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:
Randy Li
2017-03-06 10:30:45 +08:00
committed by Herman Chen
parent 00ee65d28f
commit e254d8c15b

View File

@@ -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;