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

View File

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