mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-15 22:54:00 +00:00
vp9: std::move buffer within ComposeFrameHeader()
We can move the buffer here to avoid a heap reallocation
This commit is contained in:
parent
00decfbb07
commit
6291975731
1 changed files with 1 additions and 1 deletions
|
@ -853,7 +853,7 @@ std::vector<u8>& VP9::ComposeFrameHeader(NvdecCommon::NvdecRegisters& state) {
|
||||||
{
|
{
|
||||||
Vp9FrameContainer curr_frame = GetCurrentFrame(state);
|
Vp9FrameContainer curr_frame = GetCurrentFrame(state);
|
||||||
current_frame_info = curr_frame.info;
|
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
|
// The uncompressed header routine sets PrevProb parameters needed for the compressed header
|
||||||
|
|
Loading…
Reference in a new issue