[LMCS] fix division by zero

This commit is contained in:
Marko Viitanen 2021-05-20 16:38:46 +03:00
parent 3516972237
commit 9b986c5359

View file

@ -831,7 +831,7 @@ void kvz_lmcs_preanalyzer(struct encoder_state_t* const state, const videoframe_
aps->m_sliceReshapeInfo.sliceReshaperModelPresentFlag = true; aps->m_sliceReshapeInfo.sliceReshaperModelPresentFlag = true;
aps->m_sliceReshapeInfo.sliceReshaperEnableFlag = 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 (sliceType == KVZ_SLICE_I || (aps->m_reshapeCW.updateCtrl == 2 && modIP == 0))
{ {
if (aps->m_sliceReshapeInfo.sliceReshaperModelPresentFlag == true) if (aps->m_sliceReshapeInfo.sliceReshaperModelPresentFlag == true)