Changeset 1012 in SHVCSoftware for branches/SHM-upgrade/source/Lib/TLibEncoder


Ignore:
Timestamp:
4 Feb 2015, 00:25:57 (10 years ago)
Author:
seregin
Message:

port the fix to the ticket #55 (rev 1011)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-upgrade/source/Lib/TLibEncoder/TEncCavlc.cpp

    r1010 r1012  
    28392839#if IRAP_ALIGN_FLAG_IN_VPS_VUI
    28402840    WRITE_FLAG(vps->getCrossLayerIrapAlignFlag(), "cross_layer_irap_aligned_flag");
    2841 #if P0068_CROSS_LAYER_ALIGNED_IDR_ONLY_FOR_IRAP_FLAG
    2842     if(vps->getCrossLayerIrapAlignFlag())
    2843     {
    2844        WRITE_FLAG(vps->getCrossLayerAlignedIdrOnlyFlag(), "all_layers_idr_aligned_flag");
    2845     }
    2846 #endif
    28472841#endif
    28482842#if O0223_PICTURE_TYPES_ALIGN_FLAG
    28492843  }
    2850 #endif
     2844  else
     2845  {
     2846    vps->setCrossLayerIrapAlignFlag(vps->getVpsVuiPresentFlag()); // When not present, the value of cross_layer_irap_aligned_flag is inferred to be equal to vps_vui_present_flag
     2847  }
     2848#endif
     2849#if P0068_CROSS_LAYER_ALIGNED_IDR_ONLY_FOR_IRAP_FLAG
     2850  if(vps->getCrossLayerIrapAlignFlag())
     2851  {
     2852    WRITE_FLAG(vps->getCrossLayerAlignedIdrOnlyFlag(), "all_layers_idr_aligned_flag");
     2853  }
     2854#endif
     2855
    28512856  WRITE_FLAG( vps->getBitRatePresentVpsFlag(),        "bit_rate_present_vps_flag" );
    28522857  WRITE_FLAG( vps->getPicRatePresentVpsFlag(),        "pic_rate_present_vps_flag" );
Note: See TracChangeset for help on using the changeset viewer.