aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/OggFind.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/decoder/OggFind.cxx')
-rw-r--r--src/decoder/OggFind.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/decoder/OggFind.cxx b/src/decoder/OggFind.cxx
index e737a3ffe..05d693122 100644
--- a/src/decoder/OggFind.cxx
+++ b/src/decoder/OggFind.cxx
@@ -44,6 +44,10 @@ OggSeekPageAtOffset(OggSyncState &oy, ogg_stream_state &os, InputStream &is,
{
oy.Reset();
+ /* reset the stream to clear any previous partial packet
+ data */
+ ogg_stream_reset(&os);
+
return is.LockSeek(offset, whence, IgnoreError()) &&
oy.ExpectPageSeekIn(os);
}