This commit is contained in:
QuantumEntangledAndy committed 2021-08-01 08:47:27 +07:00
1 parent 6e325f8b9a
commit d93534a1c2
1 file changed
+1 -3
+1 -3
View File
@@ -136,9 +136,7 @@ pub(crate) fn adpcm_to_pcm(bytes: &[u8]) -> Result<Vec<u8>, Error> {
// Get predictor state from block header using DVI 4 format.
if bytes.len() < 8 {
error!("ADPCM Block size is not long enough for header");
return Err(Error::AdpcmDecoding(
"ADPCM has insufficent block size",
));
return Err(Error::AdpcmDecoding("ADPCM has insufficent block size"));
}
let step_output_bytes = &bytes[4..6];
let mut last_output = i16::from_le_bytes(