Changeset 937 in SHVCSoftware


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

fix for the ticket #42

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

Legend:

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

    r923 r937  
    305305  if( pcPPS->getInferScalingListFlag() )
    306306  {
    307     READ_UVLC( uiCode, "pps_scaling_list_ref_layer_id" ); pcPPS->setScalingListRefLayerId( uiCode );
     307    READ_CODE( 6, uiCode, "pps_scaling_list_ref_layer_id" ); pcPPS->setScalingListRefLayerId( uiCode );
    308308
    309309    // The value of pps_scaling_list_ref_layer_id shall be in the range of 0 to 62, inclusive
     
    479479    if( pcPPS->getInferScalingListFlag() )
    480480    {
    481       READ_UVLC( uiCode, "pps_scaling_list_ref_layer_id" );
     481      READ_CODE( 6, uiCode, "pps_scaling_list_ref_layer_id" );
    482482      pcPPS->setScalingListRefLayerId( uiCode );
    483483      // The value of pps_scaling_list_ref_layer_id shall be in the range of 0 to 62, inclusive
     
    10431043    if( pcSPS->getInferScalingListFlag() )
    10441044    {
    1045       READ_UVLC( uiCode, "sps_scaling_list_ref_layer_id" ); pcSPS->setScalingListRefLayerId( uiCode );
    1046 
    1047       // The value of pps_scaling_list_ref_layer_id shall be in the range of 0 to 62, inclusive
     1045      READ_CODE( 6, uiCode, "sps_scaling_list_ref_layer_id" ); pcSPS->setScalingListRefLayerId( uiCode );
     1046
     1047      // The value of sps_scaling_list_ref_layer_id shall be in the range of 0 to 62, inclusive
    10481048      assert( pcSPS->getScalingListRefLayerId() <= 62 );
    10491049
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r908 r937  
    237237    assert( pcPPS->getScalingListRefLayerId() <= 62 );
    238238
    239     WRITE_UVLC( pcPPS->getScalingListRefLayerId(), "pps_scaling_list_ref_layer_id" );
     239    WRITE_CODE( pcPPS->getScalingListRefLayerId(), 6, "pps_scaling_list_ref_layer_id" );
    240240  }
    241241  else
     
    355355    // The value of pps_scaling_list_ref_layer_id shall be in the range of 0 to 62, inclusive
    356356    assert( pcPPS->getScalingListRefLayerId() <= 62 );
    357     WRITE_UVLC( pcPPS->getScalingListRefLayerId(), "pps_scaling_list_ref_layer_id" );
     357    WRITE_CODE( pcPPS->getScalingListRefLayerId(), 6, "pps_scaling_list_ref_layer_id" );
    358358  }
    359359#endif
     
    796796      assert( pcSPS->getScalingListRefLayerId() <= 62 );
    797797
    798       WRITE_UVLC( pcSPS->getScalingListRefLayerId(), "sps_scaling_list_ref_layer_id" );
     798      WRITE_CODE( pcSPS->getScalingListRefLayerId(), 6, "sps_scaling_list_ref_layer_id" );
    799799    }
    800800    else
Note: See TracChangeset for help on using the changeset viewer.