From f05be47ed80e789a838969114d571614261103dd Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Fri, 2 Jul 2021 00:27:35 -0500 Subject: [PATCH] Replace other hardcoded ports --- src/SdpGenerator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SdpGenerator.c b/src/SdpGenerator.c index 0717c79..b0f1190 100644 --- a/src/SdpGenerator.c +++ b/src/SdpGenerator.c @@ -133,7 +133,7 @@ static int addGen4Options(PSDP_OPTION* head, char* addrStr) { char payloadStr[92]; int err = 0; - sprintf(payloadStr, "rtsp://%s:48010", addrStr); + sprintf(payloadStr, "rtsp://%s:%u", addrStr, RtspPortNumber); err |= addAttributeString(head, "x-nv-general.serverAddress", payloadStr); return err; @@ -464,7 +464,7 @@ static int fillSdpTail(char* buffer) { return sprintf(buffer, "t=0 0\r\n" "m=video %d \r\n", - AppVersionQuad[0] < 4 ? 47996 : 47998); + AppVersionQuad[0] < 4 ? 47996 : VideoPortNumber); } // Get the SDP attributes for the stream config