From b5b4af8293f9bd420879dfe6d5057d534f75562f Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Sat, 11 Oct 2025 14:28:37 +0200 Subject: [PATCH] aac: 1-8 channels in LC are fine --- nihav-mpeg/src/codecs/aac/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nihav-mpeg/src/codecs/aac/mod.rs b/nihav-mpeg/src/codecs/aac/mod.rs index 0dd7a89..e65686a 100644 --- a/nihav-mpeg/src/codecs/aac/mod.rs +++ b/nihav-mpeg/src/codecs/aac/mod.rs @@ -742,7 +742,7 @@ impl NADecoder for AACDecoder { } //println!("{}", self.m4ainfo); - if (self.m4ainfo.otype != M4AType::LC) || (self.m4ainfo.channels > 2) || (self.m4ainfo.samples != 1024) { + if (self.m4ainfo.otype != M4AType::LC) || (self.m4ainfo.channels > 8) || (self.m4ainfo.samples != 1024) { return Err(DecoderError::NotImplemented); } self.sbinfo = GASubbandInfo::find(self.m4ainfo.srate); -- 2.39.5