forge
Explore
Log in

Don't you dare go Hollow

ec-aac multichannel test: skip native aac ADTS for 8 channels, ffmpeg 9 refuses channelConfiguration > 7 (mp4 path still covers 7.1)

Browse files at this commit

5641a76d5d55eacfd398a9258422d1967f29f85eAhmet Kaan GümüşParent: b150de9
crates/ec-aac/tests/it/multichannel_parity.rsmodified+7 -0
@@ -278,6 +278,10 @@ fn matrix(ours: &[Vec<f32>], theirs: &[Vec<f32>], lag: i64) -> Vec<Vec<f64>> {
278 .collect()278 .collect()
279 }279 }
280 280
281+fn adts_refused(encoder: &str, channels: usize, container: Container) -> bool {
282+ matches!(container, Container::Adts) && encoder == "aac" && channels > 7
283+}
284+
281 fn check_case(layout: &Layout, encoder: &str, container: Container, failures: &mut Vec<String>) {285 fn check_case(layout: &Layout, encoder: &str, container: Container, failures: &mut Vec<String>) {
282 let label = format!("{:<6} {:<5} {:<10}", layout.name, container.label(), encoder);286 let label = format!("{:<6} {:<5} {:<10}", layout.name, container.label(), encoder);
283 let path = encode(layout, encoder, container);287 let path = encode(layout, encoder, container);
@@ -340,6 +344,9 @@ fn multichannel_matches_ffmpeg_per_channel() {
340 for encoder in ENCODERS {344 for encoder in ENCODERS {
341 for layout in LAYOUTS {345 for layout in LAYOUTS {
342 for container in [Container::Adts, Container::Mp4] {346 for container in [Container::Adts, Container::Mp4] {
347+ if adts_refused(encoder, layout.channels, container) {
348+ continue;
349+ }
343 check_case(layout, encoder, container, &mut failures);350 check_case(layout, encoder, container, &mut failures);
344 }351 }
345 }352 }