<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>Hi,</div><div><br></div><div>There have a long time bug in our intra prediction DC mode, see details:</div><div><br></div><div><br></div><div>******************** HM ****************************</div><div><br></div><div>// Function for calculating DC value of the reference samples used in Intra prediction</div><div>//NOTE: Bit-Limit - 25-bit source</div><div>Pel TComPrediction::predIntraGetPredValDC( const Pel* pSrc, Int iSrcStride, UInt iWidth, UInt iHeight)</div><div>{</div><div>  assert(iWidth > 0 && iHeight > 0);</div><div>  Int iInd, iSum = 0;</div><div>  Pel pDcVal;</div><div><br></div><div>  for (iInd = 0;iInd < iWidth;iInd++)</div><div>  {</div><div>    iSum += pSrc[iInd-iSrcStride];</div><div>  }</div><div>  for (iInd = 0;iInd < iHeight;iInd++)</div><div>  {</div><div>    iSum += pSrc[iInd*iSrcStride-1];</div><div>  }</div><div><br></div><div>  pDcVal = (iSum<span style="color: rgb(255, 0, 0);"> + iWidth</span>) / (iWidth + iHeight);</div><div><br></div><div>  return pDcVal;</div><div>}</div><div><br></div><div><br></div><div>*************************** x265 ******************************</div><div>dcVal = dcVal / (width + width);</div><div><br></div><div>*************************************************************</div><div><br></div><div><br></div><div>I have been double checked my origin x265 tree, it does not affect in there, so I guess we need fix it on the current tree.</div><div><br></div><div>Regards,</div><div>Min</div><div><br></div></div>