aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/command_classes/vic.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-12-03 12:33:05 -0500
committerLioncash <mathew1800@gmail.com>2020-12-03 12:33:07 -0500
commit92a5b7b388fcb837d9701ce9639c9fc4fc78422b (patch)
treeb1f11131c8b690208749cea1980288cd21825179 /src/video_core/command_classes/vic.cpp
parent4547af2ba57766ceca84762f5e0fbc7f197301c4 (diff)
vp9/vic: Resolve pessimizing moves
Removes the usage of moves that don't result in behavior different from a copy, or otherwise would prevent copy elision from occurring.
Diffstat (limited to 'src/video_core/command_classes/vic.cpp')
-rw-r--r--src/video_core/command_classes/vic.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/command_classes/vic.cpp b/src/video_core/command_classes/vic.cpp
index 2484430279..6cfc193fa9 100644
--- a/src/video_core/command_classes/vic.cpp
+++ b/src/video_core/command_classes/vic.cpp
@@ -58,7 +58,7 @@ void Vic::Execute() {
return;
}
const VicConfig config{gpu.MemoryManager().Read<u64>(config_struct_address + 0x20)};
- const AVFramePtr frame_ptr = std::move(nvdec_processor->GetFrame());
+ const AVFramePtr frame_ptr = nvdec_processor->GetFrame();
const auto* frame = frame_ptr.get();
if (!frame || frame->width == 0 || frame->height == 0) {
return;