From b12bd6e7ff339759d77a1b6b148e47779079b5a1 Mon Sep 17 00:00:00 2001 From: ziyue <1213642868@qq.com> Date: Wed, 14 Jul 2021 21:41:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Rtsp/RtspMuxer.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Rtsp/RtspMuxer.cpp b/src/Rtsp/RtspMuxer.cpp index f13657d6..ddb42751 100644 --- a/src/Rtsp/RtspMuxer.cpp +++ b/src/Rtsp/RtspMuxer.cpp @@ -43,10 +43,10 @@ void RtspMuxer::onRtp(RtpPacket::Ptr in, bool is_key) { _rtpRing->write(std::move(in), is_key); } -RtspMuxer::RtspMuxer(const TitleSdp::Ptr &title){ - if(!title){ +RtspMuxer::RtspMuxer(const TitleSdp::Ptr &title) { + if (!title) { _sdp = std::make_shared()->getSdp(); - } else{ + } else { _sdp = title->getSdp(); } _rtpRing = std::make_shared(); @@ -100,7 +100,7 @@ RtpRing::RingType::Ptr RtspMuxer::getRtpRing() const { void RtspMuxer::resetTracks() { _sdp.clear(); - for(auto &encoder : _encoder){ + for (auto &encoder : _encoder) { encoder = nullptr; } }