Refine: 优化代码,减少拷贝

This commit is contained in:
ziyue 2021-11-23 15:59:18 +08:00
parent 9f06dc3aab
commit 3a99440296

View File

@ -781,7 +781,7 @@ BufferRaw::Ptr RtmpProtocol::obtainBuffer(const void *data, size_t len) {
if (data && len) { if (data && len) {
buffer->assign((const char *) data, len); buffer->assign((const char *) data, len);
} }
return buffer; return std::move(buffer);
} }
} /* namespace mediakit */ } /* namespace mediakit */