We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3afcdf2 + 5338cd7 commit 49f05abCopy full SHA for 49f05ab
src/idct.rs
@@ -142,6 +142,9 @@ fn dequantize_and_idct_block_8x8_inner<'a, I>(
142
// to encode as 0..255 by adding 128, so we'll add that before the shift
143
const X_SCALE: i32 = 65536 + (128 << 17);
144
145
+ // eliminate downstream bounds checks
146
+ let output_chunk = &mut output_chunk[..8];
147
+
148
// TODO When the minimum rust version supports it
149
// let [s0, rest @ ..] = chunk;
150
let (s0, rest) = chunk.split_first().unwrap();
0 commit comments