From c8d32ecc4260abf5bd2371de7bff08fb51385123 Mon Sep 17 00:00:00 2001 From: pineappleEA Date: Sat, 13 Nov 2021 07:28:33 +0100 Subject: [PATCH] early-access version 2195 --- README.md | 2 +- src/video_core/command_classes/codecs/vp8.cpp | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index e12a4d2d3..0f33b8af3 100755 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ yuzu emulator early access ============= -This is the source code for early-access 2194. +This is the source code for early-access 2195. ## Legal Notice diff --git a/src/video_core/command_classes/codecs/vp8.cpp b/src/video_core/command_classes/codecs/vp8.cpp index e588d9ab6..32ad0ec16 100755 --- a/src/video_core/command_classes/codecs/vp8.cpp +++ b/src/video_core/command_classes/codecs/vp8.cpp @@ -25,9 +25,9 @@ const std::vector& VP8::ComposeFrame(const NvdecCommon::NvdecRegisters& stat // Based on page 30 of the VP8 specification. // https://datatracker.ietf.org/doc/rfc6386/ - frame[0] = is_key_frame ? 0u : 1u; // 1-bit frame type (0: keyframe, 1: interframes). - frame[0] |= (info.version & 7u) << 1u; // 3-bit version number - frame[0] |= 1u << 4u; // 1-bit show_frame flag + frame[0] = is_key_frame ? 0u : 1u; // 1-bit frame type (0: keyframe, 1: interframes). + frame[0] |= static_cast((info.version & 7u) << 1u); // 3-bit version number + frame[0] |= static_cast(1u << 4u); // 1-bit show_frame flag // The next 19-bits are the first partition size frame[0] |= static_cast((info.first_part_size & 7u) << 5u); @@ -35,9 +35,9 @@ const std::vector& VP8::ComposeFrame(const NvdecCommon::NvdecRegisters& stat frame[2] = static_cast((info.first_part_size & 0x7f800u) >> 11u); if (is_key_frame) { - frame[3] = 0x9d; - frame[4] = 0x01; - frame[5] = 0x2a; + frame[3] = 0x9du; + frame[4] = 0x01u; + frame[5] = 0x2au; // TODO(ameerj): Horizontal/Vertical Scale // 16 bits: (2 bits Horizontal Scale << 14) | Width (14 bits) frame[6] = static_cast(info.frame_width & 0xff);