From 7ef3578630088a6aea8c69f385ee5b19a5da9574 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sun, 3 Dec 2023 13:44:32 +1000 Subject: [PATCH] ByteStream: Fix incorrect computation in Zstd SeekRelative() --- src/common/byte_stream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/byte_stream.cpp b/src/common/byte_stream.cpp index 186099960..3b0de49ab 100644 --- a/src/common/byte_stream.cpp +++ b/src/common/byte_stream.cpp @@ -1559,7 +1559,7 @@ public: { const s64 skip = std::min(m_output_buffer_wpos - m_output_buffer_rpos, remaining); remaining -= skip; - m_output_buffer_wpos += static_cast(skip); + m_output_buffer_rpos += static_cast(skip); if (remaining == 0) return true; else if (!Decompress())