Skip to content

Commit

Permalink
adpcm: report unsupported error for more than 2 channels
Browse files Browse the repository at this point in the history
  • Loading branch information
sscobici committed Jan 10, 2025
1 parent 393f9bb commit 8a693db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion symphonia-codec-adpcm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ impl AdpcmDecoder {
decode_stereo(&mut stream, buffers, frames_per_block)?;
}
}
_ => unreachable!(),
_ => return unsupported_error("adpcm: up to two channels are supported"),
}

Ok(())
Expand Down

0 comments on commit 8a693db

Please sign in to comment.