diff options
author | Lioncash <mathew1800@gmail.com> | 2020-10-27 07:20:41 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2020-10-27 07:21:40 +0100 |
commit | 3b5d5fa86fb2ffe2e78eab86e4a8db189f69f0fa (patch) | |
tree | 9515cbf6561483faeb93ef145c272eca14d3deb4 /src/video_core | |
parent | vp9: Resolve variable shadowing (diff) | |
download | yuzu-3b5d5fa86fb2ffe2e78eab86e4a8db189f69f0fa.tar yuzu-3b5d5fa86fb2ffe2e78eab86e4a8db189f69f0fa.tar.gz yuzu-3b5d5fa86fb2ffe2e78eab86e4a8db189f69f0fa.tar.bz2 yuzu-3b5d5fa86fb2ffe2e78eab86e4a8db189f69f0fa.tar.lz yuzu-3b5d5fa86fb2ffe2e78eab86e4a8db189f69f0fa.tar.xz yuzu-3b5d5fa86fb2ffe2e78eab86e4a8db189f69f0fa.tar.zst yuzu-3b5d5fa86fb2ffe2e78eab86e4a8db189f69f0fa.zip |
Diffstat (limited to 'src/video_core')
-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 04e015ae8..0315a80bc 100644 --- a/src/video_core/command_classes/codecs/vp9.cpp +++ b/src/video_core/command_classes/codecs/vp9.cpp @@ -395,7 +395,7 @@ Vp9PictureInfo VP9::GetVp9PictureInfo(const NvdecCommon::NvdecRegisters& state) // to avoid buffering frame data needed for reference frame updating in the header composition. std::memcpy(vp9_info.frame_offsets.data(), state.surface_luma_offset.data(), 4 * sizeof(u64)); - return std::move(vp9_info); + return vp9_info; } void VP9::InsertEntropy(u64 offset, Vp9EntropyProbs& dst) { @@ -408,7 +408,7 @@ Vp9FrameContainer VP9::GetCurrentFrame(const NvdecCommon::NvdecRegisters& state) Vp9FrameContainer frame{}; { gpu.SyncGuestHost(); - frame.info = std::move(GetVp9PictureInfo(state)); + frame.info = GetVp9PictureInfo(state); frame.bit_stream.resize(frame.info.bitstream_size); gpu.MemoryManager().ReadBlock(state.frame_bitstream_offset, frame.bit_stream.data(), |