mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-24 02:24:07 +00:00
[LMCS] fix division by zero
This commit is contained in:
parent
3516972237
commit
9b986c5359
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue