From: Kostya Shishkov Date: Tue, 7 May 2024 16:13:19 +0000 (+0200) Subject: aac: clear M/S flags X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=e67f790128e1caeec846adbe56b3dfa5c7f8f6df;p=nihav.git aac: clear M/S flags --- diff --git a/nihav-mpeg/src/codecs/aac/mod.rs b/nihav-mpeg/src/codecs/aac/mod.rs index 655b45b..e37e812 100644 --- a/nihav-mpeg/src/codecs/aac/mod.rs +++ b/nihav-mpeg/src/codecs/aac/mod.rs @@ -330,6 +330,8 @@ impl ChannelPair { self.ms_used[g][sfb] = br.read_bool()?; } } + } else { + self.ms_used = [[false; MAX_SFBS]; MAX_WINDOWS]; } self.ics[1].info = self.ics[0].info; }