diff --git a/src/Rtmp/RtmpProtocol.cpp b/src/Rtmp/RtmpProtocol.cpp index 4f9a8af7..3b0c28c6 100644 --- a/src/Rtmp/RtmpProtocol.cpp +++ b/src/Rtmp/RtmpProtocol.cpp @@ -781,7 +781,7 @@ BufferRaw::Ptr RtmpProtocol::obtainBuffer(const void *data, size_t len) { if (data && len) { buffer->assign((const char *) data, len); } - return buffer; + return std::move(buffer); } } /* namespace mediakit */