﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1259	Segmentation fault when using 4:2:2 subsampling	jackh		"When using 4:2:2, the following code in TComPrediction::initAdiPatternChType() (TComPattern.cpp):


{{{
  const Int  iBaseUnitSize    = g_uiMaxCUWidth >> g_uiMaxCUDepth;
  const Int  iUnitWidth       = iBaseUnitSize  >> pcCU->getPic()->getPicYuvRec()->getComponentScaleX(compID);
  const Int  iUnitHeight      = iBaseUnitSize  >> pcCU->getPic()->getPicYuvRec()->getComponentScaleY(compID);
  const Int  iTUWidthInUnits  = uiTuWidth  / iUnitWidth;
  const Int  iTUHeightInUnits = uiTuHeight / iUnitHeight;
}}}

can result in iTUHeightInUnits==0 when processing the two halves of a chroma TU, as the TU has been split one further than the height reflected in iUnitHeight. This then leads to a segmentation fault further down when iTUHeightInUnits-1 is used to index an array."	defect	closed	minor	HM+RExt-4.2	HM RExt	RExt-4.1 (HM-12.0)	fixed		davidf karlsharman jct-vc@…
