mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-18 22:35:39 +00:00
ByteStream: Fix incorrect computation in Zstd SeekRelative()
This commit is contained in:
parent
d0d5b79b61
commit
7ef3578630
|
@ -1559,7 +1559,7 @@ public:
|
||||||
{
|
{
|
||||||
const s64 skip = std::min<s64>(m_output_buffer_wpos - m_output_buffer_rpos, remaining);
|
const s64 skip = std::min<s64>(m_output_buffer_wpos - m_output_buffer_rpos, remaining);
|
||||||
remaining -= skip;
|
remaining -= skip;
|
||||||
m_output_buffer_wpos += static_cast<u32>(skip);
|
m_output_buffer_rpos += static_cast<u32>(skip);
|
||||||
if (remaining == 0)
|
if (remaining == 0)
|
||||||
return true;
|
return true;
|
||||||
else if (!Decompress())
|
else if (!Decompress())
|
||||||
|
|
Loading…
Reference in a new issue