From cd52a022f42a4f34786ece7cf8e3539646ff0ed2 Mon Sep 17 00:00:00 2001 From: ziyue <1213642868@qq.com> Date: Mon, 25 Oct 2021 19:39:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Drtsp=E7=82=B9=E6=92=AD?= =?UTF-8?q?=E6=97=B6=E9=95=BF=E4=B8=8D=E5=87=86=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Rtsp/Rtsp.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Rtsp/Rtsp.cpp b/src/Rtsp/Rtsp.cpp index 01825fa5..4912e3bd 100644 --- a/src/Rtsp/Rtsp.cpp +++ b/src/Rtsp/Rtsp.cpp @@ -98,9 +98,8 @@ string SdpTrack::toString(uint16_t port) const { _StrPrinter _printer; switch (_type) { case TrackTitle: { - TitleSdp title(atof(_t.data())); + TitleSdp title(_duration); _printer << title.getSdp(); - getAttrSdp(_attr, _printer); break; } case TrackAudio: