aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-04-29 11:56:05 +0200
committerMax Kellermann <max@duempel.org>2014-04-29 11:56:05 +0200
commit70bd35abe2ab774b70e37822f0200fcd4ebcd6c6 (patch)
treef0ee4de258840e0b2bc3c7c9d96d5b971dd09e6d /src/decoder
parent0efb67b51e0d9d34c65bbdbd9df567a8a991cc4c (diff)
downloadmpd-70bd35abe2ab774b70e37822f0200fcd4ebcd6c6.tar.gz
mpd-70bd35abe2ab774b70e37822f0200fcd4ebcd6c6.tar.xz
mpd-70bd35abe2ab774b70e37822f0200fcd4ebcd6c6.zip
decoder/OggUtil: allow skipping up to 32 kB after seek
Fixes missing song length on high-latency Opus files. According to tests with 320 kbit/s opus files with 60ms packets, we need to skip up to 29 kB.
Diffstat (limited to 'src/decoder')
-rw-r--r--src/decoder/OggUtil.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/decoder/OggUtil.cxx b/src/decoder/OggUtil.cxx
index fd137f110..8f181ce57 100644
--- a/src/decoder/OggUtil.cxx
+++ b/src/decoder/OggUtil.cxx
@@ -81,7 +81,7 @@ bool
OggExpectPageSeek(ogg_sync_state &oy, ogg_page &page,
Decoder *decoder, InputStream &input_stream)
{
- size_t remaining_skipped = 16384;
+ size_t remaining_skipped = 32768;
while (true) {
int r = ogg_sync_pageseek(&oy, &page);