diff --git a/mpp/codec/enc/jpeg/jpege_api_v2.c b/mpp/codec/enc/jpeg/jpege_api_v2.c index 1bf939e3..64dc1ba8 100644 --- a/mpp/codec/enc/jpeg/jpege_api_v2.c +++ b/mpp/codec/enc/jpeg/jpege_api_v2.c @@ -129,7 +129,8 @@ static MPP_RET jpege_proc_prep_cfg(MppEncPrepCfg *dst, MppEncPrepCfg *src) /* jpeg encoder do not have mirring / denoise feature */ - if (change & MPP_ENC_PREP_CFG_CHANGE_INPUT) { + if ((change & MPP_ENC_PREP_CFG_CHANGE_INPUT) || + (change & MPP_ENC_PREP_CFG_CHANGE_ROTATION)) { if (dst->rotation == MPP_ENC_ROT_90 || dst->rotation == MPP_ENC_ROT_270) { dst->width = src->height; dst->height = src->width;