Commit 8c67d5ab authored by sagnowski's avatar sagnowski
Browse files

Fix Q-factor for TD signal synthesis

parent 3812c580
Loading
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -1531,7 +1531,11 @@ static ivas_error isar_generate_metadata_and_bitstream(
    {
        return error;
    }

    IF( EQ_16( cldfb_in_flag, 1 ) )
    {
        *td_q = Q_out[0];
    }

    return IVAS_ERR_OK;
}
@@ -1753,7 +1757,7 @@ ivas_error IVAS_DEC_GetSplitBinauralBitstream(
    Word16 i;
    Word16 pcm_out_flag;
    Word16 numSamplesPerChannelToOutput;
    Word16 td_q;
    Word16 td_q = 11;

    if ( hIvasDec == NULL || hIvasDec->st_ivas == NULL )
    {
@@ -5436,7 +5440,7 @@ ivas_error IVAS_DEC_VoIP_GetSamples
#ifdef FIX_1119_SPLIT_RENDERING_VOIP
    IF( hIvasDec->hasDecodedFirstGoodFrame && splitRendBits != NULL )
    {
        Word16 td_q;
        Word16 td_q = 11;;

        /* Analyse head poses over entire frame, generate ISAR metadata and maybe encode if split coded */
        IF( ( error = isar_generate_metadata_and_bitstream( st_ivas, p_head_pose_buf, *nSamplesRendered, splitRendBits, &td_q ) ) != IVAS_ERR_OK )