diff --git a/mpp/legacy/vpu_api_legacy.cpp b/mpp/legacy/vpu_api_legacy.cpp index 349efb5f..eceebbac 100644 --- a/mpp/legacy/vpu_api_legacy.cpp +++ b/mpp/legacy/vpu_api_legacy.cpp @@ -192,9 +192,10 @@ static int copy_align_raw_buffer_to_dest(RK_U8 *dst, RK_U8 *src, RK_U32 width, RK_U8 *src_buf = src; RK_U32 row = 0; RK_U32 hor_stride = MPP_ALIGN(width, 16); - RK_U32 ver_stride = MPP_ALIGN(height, 16); + RK_U32 ver_stride = MPP_ALIGN(height, 8); RK_U8 *dst_u = dst_buf + hor_stride * ver_stride; RK_U8 *dst_v = dst_u + hor_stride * ver_stride / 4; + switch (fmt) { case MPP_FMT_YUV420SP : { for (row = 0; row < height; row++) {