Ticket #239: G633_bug_fix.patch

File G633_bug_fix.patch, 582 bytes (added by Heiner Kirchhoffer, 11 years ago)

Patch file for fixing the issue of wrong derivation of valMps

  • source/Lib/TLibCommon/ContextModel.cpp

     
    6060  Int n = initValue & 15;
    6161 
    6262  Int val = max( 0, min( 3839, (n<<8) + m * (qp-26) + 128 ) );
    63   Int valMps = val >= 1792;
    6463  val -= 1920;
     64  Int valMps = val >= 0;
    6565  val = ( val ^ (val>>11) ) + 128;
    6666  Int segmentIdx = val >> 8;
    6767  Int pStateIdx = m_accumulatedSegOffset[segmentIdx] + ( (val&255) * m_segOffset[segmentIdx] >> 8);