Skip to content
Snippets Groups Projects
Commit 4173658c authored by Frank Bossen's avatar Frank Bossen
Browse files

Fix #840: Use proper source buffer when boundaries are present

parent 7f27a0ba
No related branches found
No related tags found
1 merge request!1280Fix #840: Use proper source buffer when boundaries are present
......@@ -474,13 +474,12 @@ void AdaptiveLoopFilter::ALFProcess(CodingStructure& cs)
if (filterIdx != 0)
{
const Area blkSrc(0, 0, w >> chromaScaleX, h >> chromaScaleY);
Area blkDst(xPos >> chromaScaleX, yPos >> chromaScaleY, width >> chromaScaleX,
height >> chromaScaleY);
const Area blkSrc(0, 0, w, h);
Area blkDst(xStart >> chromaScaleX, yStart >> chromaScaleY, w >> chromaScaleX, h >> chromaScaleY);
const int16_t *filterCoeff = m_ccAlfFilterParam.ccAlfCoeff[compIdx - 1][filterIdx - 1];
m_filterCcAlf(recYuv.get(compID), tmpYuv, blkDst, blkSrc, compID, filterCoeff, m_clpRngs, cs,
m_filterCcAlf(recYuv.get(compID), buf, blkDst, blkSrc, compID, filterCoeff, m_clpRngs, cs,
m_alfVBLumaCTUHeight, m_alfVBLumaPos);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment