forge
Explore
Log in

Don't you dare go Hollow

B15: ec-pcm-ext delete dead MS ADPCM channel check in decode()

Browse files at this commit

f3d61775a1dd99848f7b2b161452ed2a11371963Ahmet Kaan GümüşParent: a7e1cd1
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.rsmodified+0 -3
@@ -284,9 +284,6 @@ impl PcmExtDecoder {
284 }284 }
285 }285 }
286 Kind::MsAdpcm => {286 Kind::MsAdpcm => {
287- if ch > 2 {
288- return Err(Error::unsupported("MS ADPCM", "more than two channels"));
289- }
290 if data.len() < 7 * ch {287 if data.len() < 7 * ch {
291 return Err(Error::corrupt("MS ADPCM: a block shorter than its header"));288 return Err(Error::corrupt("MS ADPCM: a block shorter than its header"));
292 }289 }