mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-14 12:05:58 +08:00
大幅提升接收推流性能以及降低内存占用
This commit is contained in:
@@ -101,7 +101,8 @@ void MP4MuxerInterface::inputFrame(const Frame::Ptr &frame) {
|
||||
|
||||
if (_frameCached.size() != 1) {
|
||||
//缓存中有多帧,需要按照mp4格式合并一起
|
||||
string merged;
|
||||
BufferLikeString merged;
|
||||
merged.reserve(back->size() + 1024);
|
||||
_frameCached.for_each([&](const Frame::Ptr &frame) {
|
||||
uint32_t nalu_size = frame->size() - frame->prefixSize();
|
||||
nalu_size = htonl(nalu_size);
|
||||
|
||||
Reference in New Issue
Block a user