From e67f790128e1caeec846adbe56b3dfa5c7f8f6df Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Tue, 7 May 2024 18:13:19 +0200 Subject: [PATCH] aac: clear M/S flags --- nihav-mpeg/src/codecs/aac/mod.rs | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.39.5