ByteStream: Fix incorrect computation in Zstd SeekRelative()

This commit is contained in:
Stenzek 2023-12-03 13:44:32 +10:00
parent d0d5b79b61
commit 7ef3578630
No known key found for this signature in database

View file

@ -1559,7 +1559,7 @@ public:
{
const s64 skip = std::min<s64>(m_output_buffer_wpos - m_output_buffer_rpos, remaining);
remaining -= skip;
m_output_buffer_wpos += static_cast<u32>(skip);
m_output_buffer_rpos += static_cast<u32>(skip);
if (remaining == 0)
return true;
else if (!Decompress())