[jpegd]: Fix timeout problem

When decoding a YUV444 picture with format convertion, it may encounter
timeout error.

Change-Id: I9a9f6eda6c9ee92e029530c0dbbb8ad7f48d9d18
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
This commit is contained in:
Johnson Ding
2021-06-04 16:03:36 +08:00
committed by Herman Chen
parent f1c2d025b4
commit 559b030bcb

View File

@@ -711,6 +711,7 @@ MPP_RET jpegd_gen_regs(JpegdHalCtx *ctx, JpegdSyntax *syntax)
* but not 16-pixel aligned
*/
if ((s->height % 16) && ((s->height % 16) <= 8) &&
(!ctx->pp_info.pp_enable) &&
(s->yuv_mode == JPEGDEC_YUV422 ||
s->yuv_mode == JPEGDEC_YUV444 ||
s->yuv_mode == JPEGDEC_YUV411)) {