mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-16 13:05:59 +08:00
优化rtmp性能
This commit is contained in:
@@ -49,8 +49,7 @@ void CommonRtmpEncoder::inputFrame(const Frame::Ptr &frame) {
|
||||
if (!_audio_flv_flags) {
|
||||
return;
|
||||
}
|
||||
RtmpPacket::Ptr rtmp = ResourcePoolHelper<RtmpPacket>::obtainObj();
|
||||
rtmp->buffer.clear();
|
||||
auto rtmp = RtmpPacket::create();
|
||||
//header
|
||||
rtmp->buffer.push_back(_audio_flv_flags);
|
||||
//data
|
||||
|
||||
Reference in New Issue
Block a user