Commit 3f0d0f08 authored by Frank Bossen's avatar Frank Bossen

Merge branch 'R0233-lineBufferReduction-CCALF' into 'master'

Fix: Memory address fix in CCALF encoder

See merge request jvet/VVCSoftware_VTM!1550
parents c5996cdc a13cea55
......@@ -4089,12 +4089,11 @@ void EncAdaptiveLoopFilter::getBlkStatsCcAlf(AlfCovariance &alfCovariance, const
{
int vbDistance = ((i << getComponentScaleY(compID, m_chromaFormat)) % vbCTUHeight) - vbPos;
#if JVET_R0233_CCALF_LINE_BUFFER_REDUCTION
if ((getComponentScaleY(compID, m_chromaFormat) == 0) && (vbDistance == 0 || vbDistance == 1))
{
continue;
}
#endif
const bool skipThisRow = getComponentScaleY(compID, m_chromaFormat) == 0 && (vbDistance == 0 || vbDistance == 1);
for (int j = 0; j < compArea.width && (!skipThisRow); j++)
#else
for (int j = 0; j < compArea.width; j++)
#endif
{
std::memset(ELocal, 0, sizeof(ELocal));
......
Markdown is supported
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