Changeset 383 in SHVCSoftware for branches/SHM-3.1-dev/source


Ignore:
Timestamp:
6 Sep 2013, 01:09:22 (11 years ago)
Author:
qualcomm
Message:

Added byte alignment before parsing VPS VUI

From: Adarsh K. Ramasubramonian <aramasub@…>

Location:
branches/SHM-3.1-dev/source/Lib
Files:
2 edited

Legend:

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

    r382 r383  
    11501150  {
    11511151#if VPS_VUI
     1152    while ( m_pcBitstream->getNumBitsRead() % 8 != 0 )
     1153    {
     1154      READ_FLAG( uiCode, "vps_vui_alignment_bit_equal_to_one"); assert(uiCode == 1);
     1155    }
    11521156    parseVPSVUI(vps);
    11531157#endif
  • branches/SHM-3.1-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r382 r383  
    891891#else
    892892  WRITE_FLAG( 1,                     "vps_vui_present_flag" );
    893   codeVPSVUI(vps); 
     893  if(1)   // Should be conditioned on the value of vps_vui_present_flag
     894  {
     895    while ( m_pcBitIf->getNumberOfWrittenBits() % 8 != 0 )
     896    {
     897      WRITE_FLAG(1,                  "vps_vui_alignment_bit_equal_to_one");
     898    }
     899    codeVPSVUI(vps); 
     900  }
    894901#endif
    895902}
Note: See TracChangeset for help on using the changeset viewer.