Skip to content

Commit 5101bad

Browse files
committed
lib/xiph/OggSyncState: increase skip limit yet again to 1 MB
More like 70bd35a and a757eeb This allows skipping through large OpusTags pages. Of course, there must be a limit, and a higher limit means we waste more I/O to detect that there is really just garbage, but these days, reading through 1 MB garbage seems acceptable.
1 parent 8c232c7 commit 5101bad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/xiph/OggSyncState.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ OggSyncState::ExpectPageIn(ogg_stream_state &os)
5151
bool
5252
OggSyncState::ExpectPageSeek(ogg_page &page)
5353
{
54-
size_t remaining_skipped = 65536;
54+
size_t remaining_skipped = 1024 * 1024;
5555

5656
while (true) {
5757
int r = ogg_sync_pageseek(&oy, &page);

0 commit comments

Comments
 (0)