Commit a053fa16 authored by Mohammadreza Naghibzadeh's avatar Mohammadreza Naghibzadeh
Browse files

Replace st_ivas->nchan_transport with...

Replace st_ivas->nchan_transport with st_ivas->hSpar->hMdDec->spar_md_cfg.nchan_transport and add Q-format explanatory comment
parent 183395d0
Loading
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -5171,7 +5171,7 @@ Word16 ivas_is_res_channel(

void ivas_spar_dec_agc_pca_fx(
    Decoder_Struct *st_ivas,                                    /* i/o: IVAS decoder handle                             */
    Word32 *output[],                                           /* i/o: input/output audio channels                 */
    Word32 *output[],                                           /* i/o: input/output audio channels, Qin=Q14 -> Qout=Q11*/
    const Word16 output_frame                                   /* i  : output frame length                             */
);

+1 −1
Original line number Diff line number Diff line
@@ -632,7 +632,7 @@ ivas_error ivas_dec_fx(
#ifdef FIX_2440_AGC_PRESCALING
            // For nchan_transport = 3, the fourth input audio channel in ivas_spar_dec_agc_pca_fx() is also used,
            // so one additional channel must be aligned to Q14.
            if ( EQ_16( st_ivas->nchan_transport, 3 ) )
            if ( EQ_16( st_ivas->hSpar->hMdDec->spar_md_cfg.nchan_transport, 3 ) )
#else
            if ( EQ_16( size, 3 ) )
#endif
+3 −3
Original line number Diff line number Diff line
@@ -1443,7 +1443,7 @@ static void ivas_spar_calc_smooth_facs_fx(

void ivas_spar_dec_agc_pca_fx(
    Decoder_Struct *st_ivas,  /* i/o: IVAS decoder handle                             */
    Word32 *output[],         /* i/o: input/output audio channels             Q14*/
    Word32 *output[],         /* i/o: input/output audio channels, Qin=Q14 -> Qout=Q11*/
    const Word16 output_frame /* i  : output frame length                           Q0*/
)
{