From bb5ba87c889c665455680daef66250a6e4b99587 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Thu, 27 Aug 2020 16:51:55 +0200 Subject: [PATCH] aac: fix the window group advancement in joint-stereo reconstruction Reported by Philip Deljanov --- nihav-commonfmt/src/codecs/aac.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.39.5