Ticket #429: HM-6.0-dev-r2140-WPPEntryPoint.patch

File HM-6.0-dev-r2140-WPPEntryPoint.patch, 1.0 KB (added by kiranmisra, 12 years ago)
  • source/Lib/TLibEncoder/TEncCavlc.cpp

     
    990990    entryPointOffset                    = new UInt[pSlice->getPPS()->getNumSubstreams()];
    991991    UInt* pSubstreamSizes               = pSlice->getSubstreamSizes();
    992992    // Find number of zero substreams at the end of slice
    993     for (Int idx=pSlice->getPPS()->getNumSubstreams()-1; idx>=0; idx--)
     993    for (Int idx=pSlice->getPPS()->getNumSubstreams()-2; idx>=0; idx--)
    994994    {
    995995      if ( pSubstreamSizes[ idx ] ==  0 )
    996996      {
     
    10011001        break;
    10021002      }
    10031003    }
    1004     numEntryPointOffsets       = pSlice->getPPS()->getNumSubstreams() - numZeroSubstreamsAtEndOfSlice;
     1004    numEntryPointOffsets       = pSlice->getPPS()->getNumSubstreams() - 1 - numZeroSubstreamsAtEndOfSlice;
    10051005    for (Int idx=0; idx<numEntryPointOffsets; idx++)
    10061006    {
    10071007      entryPointOffset[ idx ] = ( pSubstreamSizes[ idx ] >> 3 ) ;