diff --git a/crates/ec-aac/tests/sbr_real_library/chunk_a.rs b/crates/ec-aac/tests/sbr_real_library/chunk_a.rs index 8f8978af..578dcaed 100644 --- a/crates/ec-aac/tests/sbr_real_library/chunk_a.rs +++ b/crates/ec-aac/tests/sbr_real_library/chunk_a.rs @@ -164,7 +164,11 @@ pub(super) fn full_chain_low_band_matches_own_core() { // sample-for-sample with the full-chain output's rate -- // crude, but a low-pass well below the core Nyquist erases the // stairstep artifacts this introduces. - let up = upsample_2x(&core[ch]); + let up = if full_rate == core_rate { + core[ch].clone() + } else { + upsample_2x(&core[ch]) + }; let cutoff = f64::from(core_rate) * 0.4; let keep = if full.len() > core.len() { mono_prefix(&full)