forge
Explore
Log in

Don't you dare go Hollow

S10: aac ChannelState drops prev_short, a field written after every frame and never read; output unchanged

Browse files at this commit

356e41e9957dd11b3d0529f59d36b4c81090af6bAhmet Kaan GümüşParent: 8b1df89
crates/ec-aac/src/decode.rsmodified+0 -3
@@ -308,7 +308,6 @@ struct Ics {
308308 pub struct ChannelState {
309309 overlap: Vec<f32>,
310310 prev_shape_kbd: bool,
311- prev_short: bool,
312311 }
313312
314313 impl Default for ChannelState {
@@ -316,7 +315,6 @@ impl Default for ChannelState {
316315 ChannelState {
317316 overlap: vec![0.0; FRAME_LEN],
318317 prev_shape_kbd: false,
319- prev_short: false,
320318 }
321319 }
322320 }
@@ -424,7 +422,6 @@ impl FilterBank {
424422 }
425423 state.overlap.copy_from_slice(&frame[FRAME_LEN..]);
426424 state.prev_shape_kbd = ics.window_shape_kbd;
427- state.prev_short = ics.window_sequence.is_short();
428425 }
429426 }
430427