]> git.nihav.org Git - nihav.git/commitdiff
aac: 1-8 channels in LC are fine
authorKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 11 Oct 2025 12:28:37 +0000 (14:28 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 11 Oct 2025 12:28:37 +0000 (14:28 +0200)
nihav-mpeg/src/codecs/aac/mod.rs

index 0dd7a897ae52eb8c625c91e6bd580da2a8541004..e65686a210696429295f044ae11a6475e1b86cd0 100644 (file)
@@ -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);