From f3d61775a1dd99848f7b2b161452ed2a11371963 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Wed, 2 Dec 2026 09:35:28 +0300 Subject: [PATCH] B15: ec-pcm-ext delete dead MS ADPCM channel check in decode() Evidence: channels is fixed by from_parameters, which already rejects MS ADPCM with more than two channels; the decode() check could never fire. No output change. --- crates/ec-pcm-ext/src/lib.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/crates/ec-pcm-ext/src/lib.rs b/crates/ec-pcm-ext/src/lib.rs index 24f4b9c8..3ed68b14 100644 --- a/crates/ec-pcm-ext/src/lib.rs +++ b/crates/ec-pcm-ext/src/lib.rs @@ -284,9 +284,6 @@ impl PcmExtDecoder { } } Kind::MsAdpcm => { - if ch > 2 { - return Err(Error::unsupported("MS ADPCM", "more than two channels")); - } if data.len() < 7 * ch { return Err(Error::corrupt("MS ADPCM: a block shorter than its header")); }