From: Kostya Shishkov Date: Wed, 2 Jun 2021 08:34:24 +0000 (+0200) Subject: ape: fix silent block condition X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=7e0b626d672023747462872ae4010771a3420055;p=nihav.git ape: fix silent block condition --- 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);