decoder/opus: call ogg_stream_reset() in OggSeekPageAtOffset()

This commit is contained in:
Max Kellermann 2013-10-24 23:23:23 +02:00
parent 645cb5833d
commit b74bcf2274

View File

@ -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);
}