Ticket #946: dequant_overflow.patch
File dequant_overflow.patch, 613 bytes (added by bheng, 11 years ago) |
---|
-
source/Lib/TLibCommon/TComTrQuant.cpp
1136 1136 iShift = QUANT_IQUANT_SHIFT - QUANT_SHIFT - iTransformShift; 1137 1137 1138 1138 TCoeff clipQCoef; 1139 const Int bitRange = min( 15, ( Int )( 12 + uiLog2TrSize + bitDepth - m_cQP.m_iPer ) );1139 const Int bitRange = min( 15, ( Int )( 12 + uiLog2TrSize + bitDepth - m_cQP.m_iPer - (m_cQP.m_iRem > 3)) ); 1140 1140 const Int levelLimit = 1 << bitRange; 1141 1141 1142 1142 if(getUseScalingList())