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 commit5641a76d5d55eacfd398a9258422d1967f29f85eParent: b150de91 changed file +7 -0
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 | 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 | 285 | fn check_case(layout: &Layout, encoder: &str, container: Container, failures: &mut Vec<String>) { |
| 282 | 286 | let label = format!("{:<6} {:<5} {:<10}", layout.name, container.label(), encoder); |
| 283 | 287 | let path = encode(layout, encoder, container); |
| @@ -340,6 +344,9 @@ fn multichannel_matches_ffmpeg_per_channel() { | ||
| 340 | 344 | for encoder in ENCODERS { |
| 341 | 345 | for layout in LAYOUTS { |
| 342 | 346 | for container in [Container::Adts, Container::Mp4] { |
| 347 | + if adts_refused(encoder, layout.channels, container) { | |
| 348 | + continue; | |
| 349 | + } | |
| 343 | 350 | check_case(layout, encoder, container, &mut failures); |
| 344 | 351 | } |
| 345 | 352 | } |