修复rtsp点播时长不准的bug

This commit is contained in:
ziyue 2021-10-25 19:39:45 +08:00
parent 573dc2e67a
commit cd52a022f4

View File

@ -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: