diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-10-28 06:31:30 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-10-28 06:37:47 +0100 |
commit | 4a451e584917ec89fa593068bacd6b46a96e8fb5 (patch) | |
tree | 14e37da4cdc8aa980d665ab4d33a6208c3f12bc1 /src/video_core/command_classes | |
parent | Merge pull request #4842 from liushuyu/fix-web-srv (diff) | |
download | yuzu-4a451e584917ec89fa593068bacd6b46a96e8fb5.tar yuzu-4a451e584917ec89fa593068bacd6b46a96e8fb5.tar.gz yuzu-4a451e584917ec89fa593068bacd6b46a96e8fb5.tar.bz2 yuzu-4a451e584917ec89fa593068bacd6b46a96e8fb5.tar.lz yuzu-4a451e584917ec89fa593068bacd6b46a96e8fb5.tar.xz yuzu-4a451e584917ec89fa593068bacd6b46a96e8fb5.tar.zst yuzu-4a451e584917ec89fa593068bacd6b46a96e8fb5.zip |
Diffstat (limited to 'src/video_core/command_classes')
-rw-r--r-- | src/video_core/command_classes/codecs/vp9.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/command_classes/codecs/vp9.cpp b/src/video_core/command_classes/codecs/vp9.cpp index 3bae0bb5d..c47a0e060 100644 --- a/src/video_core/command_classes/codecs/vp9.cpp +++ b/src/video_core/command_classes/codecs/vp9.cpp @@ -893,7 +893,7 @@ void VpxRangeEncoder::Write(bool bit, s32 probability) { if (((low_value << (offset - 1)) >> 31) != 0) { const s32 current_pos = static_cast<s32>(base_stream.GetPosition()); base_stream.Seek(-1, Common::SeekOrigin::FromCurrentPos); - while (base_stream.GetPosition() >= 0 && PeekByte() == 0xff) { + while (PeekByte() == 0xff) { base_stream.WriteByte(0); base_stream.Seek(-2, Common::SeekOrigin::FromCurrentPos); |