From 9b986c5359d488a71845e3e28377b5f7fa62ad9b Mon Sep 17 00:00:00 2001 From: Marko Viitanen Date: Thu, 20 May 2021 16:38:46 +0300 Subject: [PATCH] [LMCS] fix division by zero --- src/reshape.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reshape.c b/src/reshape.c index cccbaf0c..6efb98c5 100644 --- a/src/reshape.c +++ b/src/reshape.c @@ -831,7 +831,7 @@ void kvz_lmcs_preanalyzer(struct encoder_state_t* const state, const videoframe_ aps->m_sliceReshapeInfo.sliceReshaperModelPresentFlag = true; aps->m_sliceReshapeInfo.sliceReshaperEnableFlag = true; - int modIP = state->frame->poc - state->frame->poc / aps->m_reshapeCW.rspFpsToIp * aps->m_reshapeCW.rspFpsToIp; + int modIP = 0;// state->frame->poc - state->frame->poc / aps->m_reshapeCW.rspFpsToIp * aps->m_reshapeCW.rspFpsToIp; if (sliceType == KVZ_SLICE_I || (aps->m_reshapeCW.updateCtrl == 2 && modIP == 0)) { if (aps->m_sliceReshapeInfo.sliceReshaperModelPresentFlag == true)