v4l2rtspserver: improve live555 patch

Signed-off-by: Michel Promonet <michel.promonet@free.fr>
This commit is contained in:
Michel Promonet 2021-10-31 21:35:39 +01:00 committed by Rosen Penev
parent 01d7cc5f55
commit ae203538ea
1 changed files with 9 additions and 0 deletions

View File

@ -9,3 +9,12 @@
"s=%s\r\n"
"i=%s\r\n"
"t=0 0\r\n"
@@ -299,7 +299,7 @@ char* ServerMediaSession::generateSDPDes
// Generate the SDP prefix (session-level lines):
snprintf(sdp, sdpLength, sdpPrefixFmt,
- fCreationTime.tv_sec, fCreationTime.tv_usec, // o= <session id>
+ (long long)fCreationTime.tv_sec, (long long)fCreationTime.tv_usec, // o= <session id>
1, // o= <version> // (needs to change if params are modified)
addressFamily == AF_INET ? "IP4" : "IP6", // o= <address family>
ipAddressStr.val(), // o= <address>