Skip to content

Commit 8a693db

Browse files
committed
adpcm: report unsupported error for more than 2 channels
1 parent 393f9bb commit 8a693db

File tree

1 file changed

+1
-1
lines changed
  • symphonia-codec-adpcm/src

1 file changed

+1
-1
lines changed

symphonia-codec-adpcm/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ impl AdpcmDecoder {
140140
decode_stereo(&mut stream, buffers, frames_per_block)?;
141141
}
142142
}
143-
_ => unreachable!(),
143+
_ => return unsupported_error("adpcm: up to two channels are supported"),
144144
}
145145

146146
Ok(())

0 commit comments

Comments
 (0)