diff options
| author | 2020-10-27 02:27:29 -0400 | |
|---|---|---|
| committer | 2020-10-27 02:27:31 -0400 | |
| commit | 6291975731f6237de3edc81a96aca87cdae01000 (patch) | |
| tree | 467e2cf174fec1d3d28c3d313f5ddbce953c711d /src/video_core/command_classes | |
| parent | vp9: Remove dead code (diff) | |
| download | yuzu-6291975731f6237de3edc81a96aca87cdae01000.tar.gz yuzu-6291975731f6237de3edc81a96aca87cdae01000.tar.xz yuzu-6291975731f6237de3edc81a96aca87cdae01000.zip | |
vp9: std::move buffer within ComposeFrameHeader()
We can move the buffer here to avoid a heap reallocation
Diffstat (limited to 'src/video_core/command_classes')
| -rw-r--r-- | src/video_core/command_classes/codecs/vp9.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/command_classes/codecs/vp9.cpp b/src/video_core/command_classes/codecs/vp9.cpp index 2a3bdb7e7..bcbea9c05 100644 --- a/src/video_core/command_classes/codecs/vp9.cpp +++ b/src/video_core/command_classes/codecs/vp9.cpp | |||
| @@ -853,7 +853,7 @@ std::vector<u8>& VP9::ComposeFrameHeader(NvdecCommon::NvdecRegisters& state) { | |||
| 853 | { | 853 | { |
| 854 | Vp9FrameContainer curr_frame = GetCurrentFrame(state); | 854 | Vp9FrameContainer curr_frame = GetCurrentFrame(state); |
| 855 | current_frame_info = curr_frame.info; | 855 | current_frame_info = curr_frame.info; |
| 856 | bitstream = curr_frame.bit_stream; | 856 | bitstream = std::move(curr_frame.bit_stream); |
| 857 | } | 857 | } |
| 858 | 858 | ||
| 859 | // The uncompressed header routine sets PrevProb parameters needed for the compressed header | 859 | // The uncompressed header routine sets PrevProb parameters needed for the compressed header |