Skip to content

Commit

Permalink
Protect bound
Browse files Browse the repository at this point in the history
  • Loading branch information
namse committed Sep 15, 2024
1 parent ddef50c commit 57068e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion namui/namui/src/system/audio/opus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ where
absgp as u64,
)?;

interleaved_samples = &interleaved_samples[frame_size..];
interleaved_samples =
&interleaved_samples[(frame_size.min(interleaved_samples.len()))..];
}
}

Expand Down

0 comments on commit 57068e7

Please sign in to comment.