diff options
| author | Lioncash <mathew1800@gmail.com> | 2020-12-03 12:33:05 -0500 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2020-12-03 12:33:07 -0500 |
| commit | cf9767c608dfb49b77708966d8d07354930d150c (patch) | |
| tree | b1f11131c8b690208749cea1980288cd21825179 /src/video_core/command_classes/vic.cpp | |
| parent | 88089c87546b62536a27738f5ee03dff52fa76e9 (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.cpp | 2 |
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 248443027..6cfc193fa 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; |
