From: Kostya Shishkov Date: Thu, 27 Aug 2020 14:51:55 +0000 (+0200) Subject: aac: fix the window group advancement in joint-stereo reconstruction X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=bb5ba87c889c665455680daef66250a6e4b99587;p=nihav.git aac: fix the window group advancement in joint-stereo reconstruction Reported by Philip Deljanov --- diff --git a/nihav-commonfmt/src/codecs/aac.rs b/nihav-commonfmt/src/codecs/aac.rs index e5697b7..9f9588b 100644 --- a/nihav-commonfmt/src/codecs/aac.rs +++ b/nihav-commonfmt/src/codecs/aac.rs @@ -935,7 +935,7 @@ impl ChannelPair { if common_window && self.ms_mask_present != 0 { let mut g = 0; for w in 0..self.ics[0].info.num_windows { - if w > 0 && self.ics[0].info.scale_factor_grouping[w - 1] { + if w > 0 && !self.ics[0].info.scale_factor_grouping[w - 1] { g += 1; } for sfb in 0..self.ics[0].info.max_sfb {