Browse Source

v4l2rtspserver: improve live555 patch

Signed-off-by: Michel Promonet <michel.promonet@free.fr>
lilik-openwrt-22.03
Michel Promonet 3 years ago
committed by Rosen Penev
parent
commit
ae203538ea
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      multimedia/v4l2rtspserver/patches/001_live555_sprintf_format

+ 9
- 0
multimedia/v4l2rtspserver/patches/001_live555_sprintf_format View File

@ -9,3 +9,12 @@
"s=%s\r\n" "s=%s\r\n"
"i=%s\r\n" "i=%s\r\n"
"t=0 0\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>

Loading…
Cancel
Save