decoder/OggSyncState: allow skipping up to 64 kB after seek

This is more of what we did in commit 70bd35abe2 because it turns
out there are Ogg-Opus files with pages larger than 40 kB.

Closes https://github.com/MusicPlayerDaemon/MPD/issues/1487
This commit is contained in:
Max Kellermann 2022-03-16 15:39:01 +01:00
parent 2be4f89555
commit a757eebfbb
2 changed files with 3 additions and 1 deletions

2
NEWS
View File

@ -1,4 +1,6 @@
ver 0.23.7 (not yet released)
* decoder
- opus: fix missing song length on high-latency files
ver 0.23.6 (2022/03/14)
* protocol

View File

@ -67,7 +67,7 @@ OggSyncState::ExpectPageIn(ogg_stream_state &os)
bool
OggSyncState::ExpectPageSeek(ogg_page &page)
{
size_t remaining_skipped = 32768;
size_t remaining_skipped = 65536;
while (true) {
int r = ogg_sync_pageseek(&oy, &page);