Changeset 938 in SHVCSoftware


Ignore:
Timestamp:
26 Dec 2014, 20:41:37 (10 years ago)
Author:
seregin
Message:

fix for the ticket #42

Location:
branches/SHM-upgrade/source/Lib
Files:
2 edited

Legend:

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

    r936 r938  
    403403            if( pcPPS->getInferScalingListFlag() )
    404404            {
    405               READ_UVLC( uiCode, "pps_scaling_list_ref_layer_id" );
     405              READ_CODE( 6, uiCode, "pps_scaling_list_ref_layer_id" );
    406406              pcPPS->setScalingListRefLayerId( uiCode );
    407407              // The value of pps_scaling_list_ref_layer_id shall be in the range of 0 to 62, inclusive
     
    885885    if( pcSPS->getInferScalingListFlag() )
    886886    {
    887       READ_UVLC( uiCode, "sps_scaling_list_ref_layer_id" ); pcSPS->setScalingListRefLayerId( uiCode );
    888 
    889       // The value of pps_scaling_list_ref_layer_id shall be in the range of 0 to 62, inclusive
     887      READ_CODE( 6, uiCode, "sps_scaling_list_ref_layer_id" ); pcSPS->setScalingListRefLayerId( uiCode );
     888
     889      // The value of sps_scaling_list_ref_layer_id shall be in the range of 0 to 62, inclusive
    890890      assert( pcSPS->getScalingListRefLayerId() <= 62 );
    891891
  • branches/SHM-upgrade/source/Lib/TLibEncoder/TEncCavlc.cpp

    r918 r938  
    312312              // The value of pps_scaling_list_ref_layer_id shall be in the range of 0 to 62, inclusive
    313313              assert( pcPPS->getScalingListRefLayerId() <= 62 );
    314               WRITE_UVLC( pcPPS->getScalingListRefLayerId(), "pps_scaling_list_ref_layer_id" );
     314              WRITE_CODE( pcPPS->getScalingListRefLayerId(), 6, "pps_scaling_list_ref_layer_id" );
    315315            }
    316316#endif
     
    674674      assert( pcSPS->getScalingListRefLayerId() <= 62 );
    675675
    676       WRITE_UVLC( pcSPS->getScalingListRefLayerId(), "sps_scaling_list_ref_layer_id" );
     676      WRITE_CODE( pcSPS->getScalingListRefLayerId(), 6, "sps_scaling_list_ref_layer_id" );
    677677    }
    678678    else
Note: See TracChangeset for help on using the changeset viewer.