Commit e5c4a79d authored by Nishant S Kulgod's avatar Nishant S Kulgod
Browse files

fixing errors

parent 7e6f6439
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -822,7 +822,7 @@ ivas_error create_mct_dec_fx(

    /*Initialize bits required to signal channel-pair index*/
    // hMCT->bitsChannelPairIndex = max( 1, (Word16) ( floorf( ( logf( (float) hMCT->nchan_out_woLFE * ( hMCT->nchan_out_woLFE - 1 ) / 2 - 1 ) * INV_LOG_2 ) ) + 1 ) );
    hMCT->bitsChannelPairIndex = s_max( 1, add( floor_log_2( L_sub( (Word32) W_mult0_32_32( (Word32) hMCT->nchan_out_woLFE, L_shr( L_sub( (Word32) hMCT->nchan_out_woLFE, 1 ), 1 ) ), 1 ) ), 1 ) );
    hMCT->bitsChannelPairIndex = s_max( 1, add( floor_log_2( sub( shr( imult1616( hMCT->nchan_out_woLFE, sub( hMCT->nchan_out_woLFE, 1 ) ), 1 ), 1 ) ), 1 ) );

    set16_fx( hMCT->chBitRatios, 0, MCT_MAX_CHANNELS );
    set16_fx( hMCT->lowE_ch, 0, MCT_MAX_CHANNELS );