mirror of
https://github.com/Serial-ATA/lofty-rs
synced 2024-11-10 06:34:18 +00:00
ogg_pager
0.3.1
This commit is contained in:
parent
5bf1f342dc
commit
43631ee977
2 changed files with 5 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "ogg_pager"
|
||||
version = "0.3.0"
|
||||
version = "0.3.1"
|
||||
authors = ["Serial <69764315+Serial-ATA@users.noreply.github.com>"]
|
||||
edition = "2021"
|
||||
license = "MIT OR Apache-2.0"
|
||||
|
|
|
@ -352,7 +352,10 @@ pub fn paginate(packet: &[u8], stream_serial: u32, abgp: u64, flags: u8) -> Vec<
|
|||
///
|
||||
/// `length` > [`MAX_CONTENT_SIZE`]
|
||||
pub fn segment_table(length: usize) -> Result<Vec<u8>> {
|
||||
let last_len = (length % 255) as u8;
|
||||
let mut last_len = (length % 255) as u8;
|
||||
if last_len == 0 {
|
||||
last_len = 255;
|
||||
}
|
||||
|
||||
let mut needed = length / 255;
|
||||
if needed != 255 {
|
||||
|
|
Loading…
Reference in a new issue