From 7e0b626d672023747462872ae4010771a3420055 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Wed, 2 Jun 2021 10:34:24 +0200 Subject: [PATCH] ape: fix silent block condition --- nihav-llaudio/src/codecs/ape.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nihav-llaudio/src/codecs/ape.rs b/nihav-llaudio/src/codecs/ape.rs index 773c116..c80dab2 100644 --- a/nihav-llaudio/src/codecs/ape.rs +++ b/nihav-llaudio/src/codecs/ape.rs @@ -169,7 +169,7 @@ impl NADecoder for APEDecoder { if self.is_stereo { self.right.resize(nblocks, 0); } - if (fflags & 3) == 0 { + if (!self.is_stereo && (fflags & 1) == 0) || (self.is_stereo && (fflags & 3) != 3) { if !self.is_stereo || (fflags & 4) != 0 { (self.decode_mono)(&mut coder, &mut self.left)?; self.fmode.filter_mono(&mut self.left); -- 2.39.5