diff options
author | Mai M <mathew1800@gmail.com> | 2021-08-09 01:02:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-09 01:02:39 +0200 |
commit | 2da91ec75bc2a3af81211e2a91f875e9534ea843 (patch) | |
tree | de2d4cde08018d3c86bf0c8f25e2d6eba6d789c8 /src/video_core/command_classes/codecs/vp9.cpp | |
parent | Merge pull request #6843 from FernandoS27/lives-in-a-pineapple-under-the-sea-2 (diff) | |
parent | vp9: Ensure the first frame is complete (diff) | |
download | yuzu-2da91ec75bc2a3af81211e2a91f875e9534ea843.tar yuzu-2da91ec75bc2a3af81211e2a91f875e9534ea843.tar.gz yuzu-2da91ec75bc2a3af81211e2a91f875e9534ea843.tar.bz2 yuzu-2da91ec75bc2a3af81211e2a91f875e9534ea843.tar.lz yuzu-2da91ec75bc2a3af81211e2a91f875e9534ea843.tar.xz yuzu-2da91ec75bc2a3af81211e2a91f875e9534ea843.tar.zst yuzu-2da91ec75bc2a3af81211e2a91f875e9534ea843.zip |
Diffstat (limited to 'src/video_core/command_classes/codecs/vp9.cpp')
-rw-r--r-- | src/video_core/command_classes/codecs/vp9.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/command_classes/codecs/vp9.cpp b/src/video_core/command_classes/codecs/vp9.cpp index 7eecb3991..70030066a 100644 --- a/src/video_core/command_classes/codecs/vp9.cpp +++ b/src/video_core/command_classes/codecs/vp9.cpp @@ -397,14 +397,14 @@ Vp9FrameContainer VP9::GetCurrentFrame(const NvdecCommon::NvdecRegisters& state) next_frame = std::move(temp); } else { next_frame.info = current_frame.info; - next_frame.bit_stream = std::move(current_frame.bit_stream); + next_frame.bit_stream = current_frame.bit_stream; } return current_frame; } std::vector<u8> VP9::ComposeCompressedHeader() { VpxRangeEncoder writer{}; - const bool update_probs = current_frame_info.show_frame && !current_frame_info.is_key_frame; + const bool update_probs = !current_frame_info.is_key_frame && current_frame_info.show_frame; if (!current_frame_info.lossless) { if (static_cast<u32>(current_frame_info.transform_mode) >= 3) { writer.Write(3, 2); |