summaryrefslogtreecommitdiffstats
path: root/src/video_core/command_classes
diff options
context:
space:
mode:
authorLC <mathew1800@gmail.com>2020-10-28 08:16:10 +0100
committerGitHub <noreply@github.com>2020-10-28 08:16:10 +0100
commit978e7897a3099178d94d3ab1b9ae4aff3a5bb2cd (patch)
treec74c7817c019da45060306b862c1a42e3f6249ec /src/video_core/command_classes
parentMerge pull request #4847 from ReinUsesLisp/warn-move (diff)
parentvideo_core: Enforce -Werror=type-limits (diff)
downloadyuzu-978e7897a3099178d94d3ab1b9ae4aff3a5bb2cd.tar
yuzu-978e7897a3099178d94d3ab1b9ae4aff3a5bb2cd.tar.gz
yuzu-978e7897a3099178d94d3ab1b9ae4aff3a5bb2cd.tar.bz2
yuzu-978e7897a3099178d94d3ab1b9ae4aff3a5bb2cd.tar.lz
yuzu-978e7897a3099178d94d3ab1b9ae4aff3a5bb2cd.tar.xz
yuzu-978e7897a3099178d94d3ab1b9ae4aff3a5bb2cd.tar.zst
yuzu-978e7897a3099178d94d3ab1b9ae4aff3a5bb2cd.zip
Diffstat (limited to 'src/video_core/command_classes')
-rw-r--r--src/video_core/command_classes/codecs/vp9.cpp2
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 747c63d85..d205a8f5d 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);