lib/xiph/OggSyncState: fix offset counter by using the actual page size
This commit is contained in:
parent
7bcccbedad
commit
8e4cb3217e
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue