Commit 5f854f68 authored by Taoran Lu's avatar Taoran Lu
Browse files

align software with spec for O0428

parent d5a8be14
......@@ -244,7 +244,7 @@ int Reshape::getPWLIdxInv(int lumaVal)
{
if (lumaVal < m_reshapePivot[idxS + 1]) break;
}
return idxS;
return std::min(idxS, PIC_CODE_CW_BINS-1);
#else
if (lumaVal < m_reshapePivot[m_sliceReshapeInfo.reshaperModelMinBinIdx + 1])
return m_sliceReshapeInfo.reshaperModelMinBinIdx;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment