You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
850 B

  1. --- a/live/liveMedia/ServerMediaSession.cpp
  2. +++ b/live/liveMedia/ServerMediaSession.cpp
  3. @@ -271,7 +271,7 @@ char* ServerMediaSession::generateSDPDes
  4. char const* const sdpPrefixFmt =
  5. "v=0\r\n"
  6. - "o=- %ld%06ld %d IN %s %s\r\n"
  7. + "o=- %lld%06lld %d IN %s %s\r\n"
  8. "s=%s\r\n"
  9. "i=%s\r\n"
  10. "t=0 0\r\n"
  11. @@ -299,7 +299,7 @@ char* ServerMediaSession::generateSDPDes
  12. // Generate the SDP prefix (session-level lines):
  13. snprintf(sdp, sdpLength, sdpPrefixFmt,
  14. - fCreationTime.tv_sec, fCreationTime.tv_usec, // o= <session id>
  15. + (long long)fCreationTime.tv_sec, (long long)fCreationTime.tv_usec, // o= <session id>
  16. 1, // o= <version> // (needs to change if params are modified)
  17. addressFamily == AF_INET ? "IP4" : "IP6", // o= <address family>
  18. ipAddressStr.val(), // o= <address>