Changeset 1498 in SHVCSoftware


Ignore:
Timestamp:
4 Dec 2015, 00:55:10 (9 years ago)
Author:
seregin
Message:

fix bits calculation in more_data_in_slice_segment_header_extension

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r1497 r1498  
    19901990    else
    19911991    {
    1992 
    19931992      pcSlice->setPocResetPeriodId( 0 );
    19941993    }
     
    20332032
    20342033    // Read remaining bits in the slice header extension.
    2035     UInt endBits = m_pcBitstream->getNumBitsRead();
    2036     Int counter = (endBits - startBits) % 8;
    2037     if( counter )
    2038     {
    2039       counter = 8 - counter;
    2040     }
    2041 
    2042     while( counter )
     2034    Int bitsNum = sliceHeaderExtensionLength * 8 + startBits - m_pcBitstream->getNumBitsRead();
     2035
     2036    while( bitsNum )
    20432037    {
    20442038      READ_FLAG( uiCode, "slice_segment_header_extension_data_bit" );
    2045       counter--;
     2039      bitsNum--;
    20462040    }
    20472041  }
Note: See TracChangeset for help on using the changeset viewer.