Ticket #1079: cpb_size_du_value_minus1.patch

File cpb_size_du_value_minus1.patch, 1.8 KB (added by tajime, 11 years ago)
  • source/Lib/TLibDecoder/TDecCAVLC.cpp

     
    512512          READ_UVLC( uiCode, "cpb_size_value_minus1" );             hrd->setCpbSizeValueMinus1( i, j, nalOrVcl, uiCode );
    513513          if( hrd->getSubPicCpbParamsPresentFlag() )
    514514          {
     515            READ_UVLC( uiCode, "cpb_size_du_value_minus1" );       hrd->setDuCpbSizeValueMinus1( i, j, nalOrVcl, uiCode );
    515516#if L0363_DU_BIT_RATE
    516517            READ_UVLC( uiCode, "bit_rate_du_value_minus1" );       hrd->setDuBitRateValueMinus1( i, j, nalOrVcl, uiCode );
    517518#endif
    518             READ_UVLC( uiCode, "cpb_size_du_value_minus1" );       hrd->setDuCpbSizeValueMinus1( i, j, nalOrVcl, uiCode );
    519519          }
    520520          READ_FLAG( uiCode, "cbr_flag" );                          hrd->setCbrFlag( i, j, nalOrVcl, uiCode == 1 ? true : false  );
    521521        }
  • source/Lib/TLibEncoder/TEncCavlc.cpp

     
    420420          WRITE_UVLC( hrd->getCpbSizeValueMinus1( i, j, nalOrVcl ), "cpb_size_value_minus1");
    421421          if( hrd->getSubPicCpbParamsPresentFlag() )
    422422          {
     423            WRITE_UVLC( hrd->getDuCpbSizeValueMinus1( i, j, nalOrVcl ), "cpb_size_du_value_minus1"); 
    423424#if L0363_DU_BIT_RATE
    424425            WRITE_UVLC( hrd->getDuBitRateValueMinus1( i, j, nalOrVcl ), "bit_rate_du_value_minus1");
    425426#endif
    426             WRITE_UVLC( hrd->getDuCpbSizeValueMinus1( i, j, nalOrVcl ), "cpb_size_du_value_minus1"); 
    427427          }
    428428          WRITE_FLAG( hrd->getCbrFlag( i, j, nalOrVcl ) ? 1 : 0, "cbr_flag");
    429429        }