lib/xiph/OggSyncState: fix offset counter by using the actual page size

This commit is contained in:
Max Kellermann 2020-02-04 21:38:06 +01:00
parent 7bcccbedad
commit 8e4cb3217e
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ OggSyncState::ExpectPage(ogg_page &page)
if (r != 0) {
if (r > 0) {
start_offset = offset;
offset += r;
offset += page.header_len + page.body_len;
}
return r > 0;
}