Commit 739e0646 authored by norvell's avatar norvell
Browse files

Revert part of fix, since it does not resolve the issue with the PLC frame onset

parent 62dfd69e
Loading
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -1288,11 +1288,7 @@ void stereo_dft_dec(
                }
                else
                {
#ifdef NONBE_FIX_1208_DFT_STEREO_PLC_BURST
                    stereo_dft_res_ecu( hStereoDft, pDFT_RES, DFT_PRED_RES, k, prev_bfi, dmx_nrg, &num_plocs, plocs, plocsi, input_mem );
#else
                    stereo_dft_res_ecu( hStereoDft, pDFT_RES, DFT_PRED_RES, k, output_frame, prev_bfi, dmx_nrg, &num_plocs, plocs, plocsi, input_mem );
#endif
                }
            }

+0 −4
Original line number Diff line number Diff line
@@ -159,11 +159,7 @@ void stereo_dft_unify_dmx(
                pPredGain = hStereoDft->res_pred_gain + ( k + k_offset ) * STEREO_DFT_BAND_MAX;
                hStereoDft->past_DMX_pos = ( hStereoDft->past_DMX_pos + STEREO_DFT_PAST_MAX - 1 ) % STEREO_DFT_PAST_MAX;
                stereo_dft_generate_res_pred( hStereoDft, samp_ratio, pDFT_DMX, DFT_PRED_RES, pPredGain, k, DFT[1] + k * STEREO_DFT32MS_N_MAX, &stop, st0->bfi );
#ifdef NONBE_FIX_1208_DFT_STEREO_PLC_BURST
                stereo_dft_res_ecu( hStereoDft, pDFT_RES, DFT_PRED_RES, k, prev_bfi, dmx_nrg, &num_plocs, plocs, plocsi, input_mem );
#else
                stereo_dft_res_ecu( hStereoDft, pDFT_RES, DFT_PRED_RES, k, output_frame, prev_bfi, dmx_nrg, &num_plocs, plocs, plocsi, input_mem );
#endif
            }
        }

+8 −10
Original line number Diff line number Diff line
@@ -64,9 +64,7 @@ void stereo_dft_res_ecu(
    float *pDFT_RES,                       /* i/o: residual signal                 */
    float *const DFT_PRED_RES,             /* i/o: residual prediction signal      */
    const int16_t k,                       /* i  : Subframe index                  */
#ifndef NONBE_FIX_1208_DFT_STEREO_PLC_BURST
    const int16_t output_frame,            /* i  : Output frame length             */
#endif
    const int16_t prev_bfi,                /* i  : Previous BFI                    */
    const float dmx_nrg,                   /* i  : Down-mix energy                 */
    int16_t *num_plocs,                    /* i/o: Number of peak locations        */
@@ -112,7 +110,7 @@ void stereo_dft_res_ecu(
    {
        mvr2r( pDFT_RES, res_buf, L_FRAME8k );
#ifdef NONBE_FIX_1208_DFT_STEREO_PLC_BURST
        time_offs = min( MAX16B, hStereoDft->time_offs + L_FRAME8k );
        time_offs = min( MAX16B, hStereoDft->time_offs + output_frame );
        stereo_dft_res_subst_spec( hStereoDft, res_buf, DFT_PRED_RES, time_offs, L_res, L_FRAME8k, k, num_plocs, plocs, plocsi, FALSE );
#else
        stereo_dft_res_subst_spec( hStereoDft, res_buf, DFT_PRED_RES, hStereoDft->time_offs + output_frame, L_res, L_FRAME8k, k, num_plocs, plocs, plocsi, FALSE );