From dbbb6d09632d245dbddf362e8b9a150706ed4bb1 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Mon, 8 Jan 2024 11:52:13 +0100 Subject: [PATCH] fixed BasicRTSPOnlySubsession snprintf Fixes the commit 580ac72e from 13th Apr 2023. --- src/rtsp/BasicRTSPOnlySubsession.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rtsp/BasicRTSPOnlySubsession.cpp b/src/rtsp/BasicRTSPOnlySubsession.cpp index eddf38f18..c13053da2 100644 --- a/src/rtsp/BasicRTSPOnlySubsession.cpp +++ b/src/rtsp/BasicRTSPOnlySubsession.cpp @@ -161,7 +161,7 @@ void BasicRTSPOnlySubsession::setSDPLines() { + strlen(rtpmapLine) + strlen(trackId()); char* sdpLines = new char[sdpFmtSize]; - snprintf(sdpLines, sizeof sdpFmtSize, sdpFmt, + snprintf(sdpLines, sdpFmtSize, sdpFmt, mediaType, // m= rtp_port_audio,//fPortNumForSDP, // m= rtpPayloadType, // m=