Commit 5213e4a3 authored by multrus's avatar multrus
Browse files

fix patch

parent 70388bf0
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -972,7 +972,7 @@ static void dec_prm_tcx_ivas_fx(
    IF( NE_16( st->element_mode, IVAS_CPE_MDCT ) )
    {
#ifdef FIX_BASOP_2650_DEC_PRM_TCX
        st->bits_frame_core = extract_l( L_sub( Mpy_32_32_r( ivas_total_brate, ONE_BY_FRAMES_PER_SEC_Q31 ), st->next_bit_pos ) ); /* Q0 */
        st->bits_frame_core = extract_l( L_sub( Mpy_32_32_r( st->total_brate, ONE_BY_FRAMES_PER_SEC_Q31 ), st->next_bit_pos ) ); /* Q0 */
        assert( st->bits_frame_core == (int16_t) ( ( st->total_brate / FRAMES_PER_SEC ) - st->next_bit_pos ) );
#else
        // The value of 1/ FRAMES_PER_SEC shifted left by 19 because taking Q as 15 led to precision loss