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>> {
278278 .collect()
279279 }
280280
281+fn adts_refused(encoder: &str, channels: usize, container: Container) -> bool {
282+ matches!(container, Container::Adts) && encoder == "aac" && channels > 7
283+}
284+
281285 fn check_case(layout: &Layout, encoder: &str, container: Container, failures: &mut Vec<String>) {
282286 let label = format!("{:<6} {:<5} {:<10}", layout.name, container.label(), encoder);
283287 let path = encode(layout, encoder, container);
@@ -340,6 +344,9 @@ fn multichannel_matches_ffmpeg_per_channel() {
340344 for encoder in ENCODERS {
341345 for layout in LAYOUTS {
342346 for container in [Container::Adts, Container::Mp4] {
347+ if adts_refused(encoder, layout.channels, container) {
348+ continue;
349+ }
343350 check_case(layout, encoder, container, &mut failures);
344351 }
345352 }