mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-08 18:40:03 +08:00
[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:

committed by
Herman Chen

parent
f1c2d025b4
commit
559b030bcb
@@ -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)) {
|
||||
|
Reference in New Issue
Block a user