Commit b37983de authored by reutelhuber's avatar reutelhuber
Browse files

fix bug that accidentally zeroed the second channel for modes with more than 2 TCs

parent f3e3e391
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1404,7 +1404,11 @@ void stereo_dft_dec(
#endif

                /* No residual coding in inactive frames, instead pDFT_RES is used for the second channel */
#ifdef DFT_STEREO_SPAR_MIXING
                if ( b >= hStereoDft->res_cod_band_max && !hStereoDft->frame_sid_nodata && !sba_dirac_stereo_flag )
#else
                if ( b >= hStereoDft->res_cod_band_max && !hStereoDft->frame_sid_nodata )
#endif
                {
                    /*filter non-coded frequencies. It removes some MDCT frequency aliasing*/
                    for ( i = hStereoDft->band_limits[b]; i < hStereoDft->band_limits[b + 1]; i++ )