Commit 6ce011ef authored by Dominik Weckbecker's avatar Dominik Weckbecker 💬
Browse files

remove unused buffer hCPE->input_mem[2]

parent afdf23ef
Loading
Loading
Loading
Loading
+0 −22
Original line number Diff line number Diff line
@@ -689,21 +689,6 @@ ivas_error create_cpe_dec(
        }
    }

#ifdef DFT_STEREO_SPAR_MIXING
    if ( st_ivas->sba_dirac_stereo_flag && st_ivas->nchan_transport >= 2 )
    {
        if ( ( hCPE->input_mem[2] = (float *) count_malloc( sizeof( float ) * NS2SA( output_Fs, STEREO_DFT32MS_OVL_NS ) ) ) == NULL )
            {
                return ( IVAS_ERROR( IVAS_ERR_FAILED_ALLOC, "Can not allocate memory for DFT stereo memory\n" ) );
            }
            set_zero( hCPE->input_mem[2], NS2SA( output_Fs, STEREO_DFT32MS_OVL_NS ) );
    }
    else
    {
        hCPE->input_mem[2] = NULL;
    }
#endif

    /*-----------------------------------------------------------------*
     * CoreCoder, 2 instances: allocate and initialize
     *-----------------------------------------------------------------*/
@@ -945,13 +930,6 @@ void destroy_cpe_dec(
        }
        count_free( hCPE->input_mem_BPF[0] );
        hCPE->input_mem_BPF[0] = NULL;
#ifdef DFT_STEREO_SPAR_MIXING
        if ( hCPE->input_mem[2] != NULL )
        {
            count_free( hCPE->input_mem[2] );
            hCPE->input_mem[2] = NULL;
        }
#endif
    }

    if ( hCPE->hStereoCng != NULL )