Loading lib_dec/ivas_mct_dec.c +2 −2 Original line number Diff line number Diff line Loading @@ -432,7 +432,7 @@ ivas_error create_mct_dec( hMCT->currBlockDataCnt = 0; /*Initialize bits required to signal channel-pair index*/ hMCT->bitsChannelPairIndex = max( 1, (int16_t) ( floor( ( log( hMCT->nchan_out_woLFE * ( hMCT->nchan_out_woLFE - 1 ) / 2 - 1 ) / log( 2. ) ) ) + 1 ) ); hMCT->bitsChannelPairIndex = max( 1, (int16_t) ( floorf( ( logf( hMCT->nchan_out_woLFE * ( hMCT->nchan_out_woLFE - 1 ) / 2 - 1 ) * INV_LOG_2 ) ) + 1 ) ); set_s( hMCT->chBitRatios, 0, MCT_MAX_CHANNELS ); set_s( hMCT->lowE_ch, 0, MCT_MAX_CHANNELS ); Loading Loading @@ -593,7 +593,7 @@ ivas_error mct_dec_reconfigure( hMCT->currBlockDataCnt = 0; /*Initialize bits required to signal channel-pair index*/ hMCT->bitsChannelPairIndex = max( 1, (int16_t) ( floor( ( log( hMCT->nchan_out_woLFE * ( hMCT->nchan_out_woLFE - 1 ) / 2 - 1 ) / log( 2. ) ) ) + 1 ) ); hMCT->bitsChannelPairIndex = max( 1, (int16_t) ( floorf( ( logf( hMCT->nchan_out_woLFE * ( hMCT->nchan_out_woLFE - 1 ) / 2 - 1 ) * INV_LOG_2 ) ) + 1 ) ); set_s( hMCT->chBitRatios, 0, MCT_MAX_CHANNELS ); set_s( hMCT->lowE_ch, 0, MCT_MAX_CHANNELS ); Loading lib_enc/ivas_mct_enc.c +1 −1 Original line number Diff line number Diff line Loading @@ -71,7 +71,7 @@ static void set_mct_enc_params( hMCT->currBlockDataCnt = 0; /*Initialize bits required to signal channel-pair index*/ hMCT->bitsChannelPairIndex = max( 1, (int16_t) ( floor( ( log( hMCT->nchan_out_woLFE * ( hMCT->nchan_out_woLFE - 1 ) / 2 - 1 ) / log( 2. ) ) ) + 1 ) ); hMCT->bitsChannelPairIndex = max( 1, (int16_t) ( floorf( ( logf( hMCT->nchan_out_woLFE * ( hMCT->nchan_out_woLFE - 1 ) / 2 - 1 ) * INV_LOG_2 ) ) + 1 ) ); set_s( hMCT->lowE_ch, 0, MCT_MAX_CHANNELS ); Loading Loading
lib_dec/ivas_mct_dec.c +2 −2 Original line number Diff line number Diff line Loading @@ -432,7 +432,7 @@ ivas_error create_mct_dec( hMCT->currBlockDataCnt = 0; /*Initialize bits required to signal channel-pair index*/ hMCT->bitsChannelPairIndex = max( 1, (int16_t) ( floor( ( log( hMCT->nchan_out_woLFE * ( hMCT->nchan_out_woLFE - 1 ) / 2 - 1 ) / log( 2. ) ) ) + 1 ) ); hMCT->bitsChannelPairIndex = max( 1, (int16_t) ( floorf( ( logf( hMCT->nchan_out_woLFE * ( hMCT->nchan_out_woLFE - 1 ) / 2 - 1 ) * INV_LOG_2 ) ) + 1 ) ); set_s( hMCT->chBitRatios, 0, MCT_MAX_CHANNELS ); set_s( hMCT->lowE_ch, 0, MCT_MAX_CHANNELS ); Loading Loading @@ -593,7 +593,7 @@ ivas_error mct_dec_reconfigure( hMCT->currBlockDataCnt = 0; /*Initialize bits required to signal channel-pair index*/ hMCT->bitsChannelPairIndex = max( 1, (int16_t) ( floor( ( log( hMCT->nchan_out_woLFE * ( hMCT->nchan_out_woLFE - 1 ) / 2 - 1 ) / log( 2. ) ) ) + 1 ) ); hMCT->bitsChannelPairIndex = max( 1, (int16_t) ( floorf( ( logf( hMCT->nchan_out_woLFE * ( hMCT->nchan_out_woLFE - 1 ) / 2 - 1 ) * INV_LOG_2 ) ) + 1 ) ); set_s( hMCT->chBitRatios, 0, MCT_MAX_CHANNELS ); set_s( hMCT->lowE_ch, 0, MCT_MAX_CHANNELS ); Loading
lib_enc/ivas_mct_enc.c +1 −1 Original line number Diff line number Diff line Loading @@ -71,7 +71,7 @@ static void set_mct_enc_params( hMCT->currBlockDataCnt = 0; /*Initialize bits required to signal channel-pair index*/ hMCT->bitsChannelPairIndex = max( 1, (int16_t) ( floor( ( log( hMCT->nchan_out_woLFE * ( hMCT->nchan_out_woLFE - 1 ) / 2 - 1 ) / log( 2. ) ) ) + 1 ) ); hMCT->bitsChannelPairIndex = max( 1, (int16_t) ( floorf( ( logf( hMCT->nchan_out_woLFE * ( hMCT->nchan_out_woLFE - 1 ) / 2 - 1 ) * INV_LOG_2 ) ) + 1 ) ); set_s( hMCT->lowE_ch, 0, MCT_MAX_CHANNELS ); Loading