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:
parent
2be4f89555
commit
a757eebfbb
2
NEWS
2
NEWS
|
@ -1,4 +1,6 @@
|
||||||
ver 0.23.7 (not yet released)
|
ver 0.23.7 (not yet released)
|
||||||
|
* decoder
|
||||||
|
- opus: fix missing song length on high-latency files
|
||||||
|
|
||||||
ver 0.23.6 (2022/03/14)
|
ver 0.23.6 (2022/03/14)
|
||||||
* protocol
|
* protocol
|
||||||
|
|
|
@ -67,7 +67,7 @@ OggSyncState::ExpectPageIn(ogg_stream_state &os)
|
||||||
bool
|
bool
|
||||||
OggSyncState::ExpectPageSeek(ogg_page &page)
|
OggSyncState::ExpectPageSeek(ogg_page &page)
|
||||||
{
|
{
|
||||||
size_t remaining_skipped = 32768;
|
size_t remaining_skipped = 65536;
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
int r = ogg_sync_pageseek(&oy, &page);
|
int r = ogg_sync_pageseek(&oy, &page);
|
||||||
|
|
Loading…
Reference in New Issue