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
990 990 entryPointOffset = new UInt[pSlice->getPPS()->getNumSubstreams()]; 991 991 UInt* pSubstreamSizes = pSlice->getSubstreamSizes(); 992 992 // 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--) 994 994 { 995 995 if ( pSubstreamSizes[ idx ] == 0 ) 996 996 { … … 1001 1001 break; 1002 1002 } 1003 1003 } 1004 numEntryPointOffsets = pSlice->getPPS()->getNumSubstreams() - numZeroSubstreamsAtEndOfSlice;1004 numEntryPointOffsets = pSlice->getPPS()->getNumSubstreams() - 1 - numZeroSubstreamsAtEndOfSlice; 1005 1005 for (Int idx=0; idx<numEntryPointOffsets; idx++) 1006 1006 { 1007 1007 entryPointOffset[ idx ] = ( pSubstreamSizes[ idx ] >> 3 ) ;