Commit 28b252d4 authored by vaclav's avatar vaclav
Browse files

fix

parent 4da81693
Loading
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -419,6 +419,8 @@ ivas_error ivas_output_buff_dec(
        n_samp_full = ( 48000 / FRAMES_PER_SEC );
        nsamp_to_allocate = ( nchan_out_buff - nchan_tc_jbm ) * n_samp_full;

        if ( nsamp_to_allocate > 0 )
        {
            /* note: these are intra-frame heap memories */
            if ( ( hTcBuffer->tc_buffer2 = (float *) malloc( nsamp_to_allocate * sizeof( float ) ) ) == NULL )
            {
@@ -426,6 +428,7 @@ ivas_error ivas_output_buff_dec(
            }

            set_zero( hTcBuffer->tc_buffer2, nsamp_to_allocate );
        }

        offset = 0;
        for ( ; ch < nchan_out_buff; ch++ )