diff options
author | Lioncash <mathew1800@gmail.com> | 2020-10-27 02:27:29 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2020-10-27 02:27:31 -0400 |
commit | 6291975731f6237de3edc81a96aca87cdae01000 (patch) | |
tree | 467e2cf174fec1d3d28c3d313f5ddbce953c711d | |
parent | 00decfbb073311c04a247c3cd0a08d5307d4a2e3 (diff) |
vp9: std::move buffer within ComposeFrameHeader()
We can move the buffer here to avoid a heap reallocation
-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) { { Vp9FrameContainer curr_frame = GetCurrentFrame(state); current_frame_info = curr_frame.info; - bitstream = curr_frame.bit_stream; + bitstream = std::move(curr_frame.bit_stream); } // The uncompressed header routine sets PrevProb parameters needed for the compressed header |