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.
find_last_page
1 parent 6e33ca6 commit 87686acCopy full SHA for 87686ac
src/ogg/mod.rs
@@ -45,9 +45,11 @@ where
45
R: Read + Seek,
46
{
47
let mut last_page_header = PageHeader::read(data)?;
48
+ data.seek(SeekFrom::Current(last_page_header.content_size() as i64))?;
49
50
while let Ok(header) = PageHeader::read(data) {
- last_page_header = header
51
+ last_page_header = header;
52
53
}
54
55
data.seek(SeekFrom::Start(last_page_header.start))?;
0 commit comments