Fix: Use template size in getIBCAMLRefTemplate()
In the non-flipping IBC case, the function uses current block's width and height instead of template's for the validity check. The following in checkIsIBCCandidateValid() should be applied regardless of flipping type. int roiWidth = (isRefTemplate && !isRefAbove) ? AML_MERGE_TEMPLATE_SIZE : pu.lwidth(); int roiHeight = (isRefTemplate && isRefAbove) ? AML_MERGE_TEMPLATE_SIZE : pu.lheight();