﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
513	SAO Interleaving: Merge-up flag missing if above CU is first in the slice.	bheng		"The following code prevents merge-up when the above CU is the first CU in the current slice (cuAddrUpInSlice==0).

{{{
if ( (ry > 0) && (cuAddrUpInSlice>0||lfCrossSliceBoundaryFlag))
{
    m_pcEntropyCoderIf->codeSaoMergeUp(saoParam->saoLcuParam[compIdx][addr].mergeUpFlag);
}
}}}

This restriction does not seem to be necessary.  The attached patch fixes the problem by changing the condition to cuAddrUpInSlice>=0.
"	defect	closed	minor		HM	HM-6.2	fixed		fbossen ksuehring davidf jct-vc@…
