v4l2rtspserver: patch live555
authorMichel Promonet <michel.promonet@free.fr>
Sun, 31 Oct 2021 11:17:09 +0000 (12:17 +0100)
committerRosen Penev <rosenp@gmail.com>
Wed, 3 Nov 2021 15:13:33 +0000 (08:13 -0700)
Signed-off-by: Michel Promonet <michel.promonet@free.fr>
multimedia/v4l2rtspserver/Makefile
multimedia/v4l2rtspserver/patches/001_live555_sprintf_format [new file with mode: 0644]

index 74f4cb42dc960ef09455605e50c3c5befe70b6a0..b11ec830f8815bdcabff092090cfbaa2211af546 100644 (file)
@@ -16,8 +16,8 @@ PKG_SOURCE_URL:=https://github.com/mpromonet/v4l2rtspserver
 PKG_SOURCE_VERSION:=v$(PKG_VERSION)
 PKG_MIRROR_HASH:=f047fd24441a070b123252bf82c7d7e42bb0c3280b78ad2ddb01cf200acc3a32
 
-LIVE555_VERSION:=2021.02.11
-LIVE555_HASH:=834ad3fc199f1a6b0c09646976deb71a3a7803dc7b498ce92e920f6cb7b717ba
+LIVE555_VERSION:=2021.10.28
+LIVE555_HASH:=84dd36267940dcea848f54dc1f6d73171a949dee907750fac3a5a0b39e94dbd9
 LIVE555_FILE:=live.$(LIVE555_VERSION).tar.gz
 
 PKG_MAINTAINER:=Roger Dammit <rogerdammit@gmail.com>
@@ -57,12 +57,11 @@ CMAKE_OPTIONS += \
        -DLIVE555CFLAGS=" -DSOCKLEN_T=socklen_t -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DLOCALE_NOT_USED -DNO_SSTREAM=1 -DALLOW_RTSP_SERVER_PORT_REUSE=1 -DNO_OPENSSL"
 
 define Build/Prepare
-       $(Build/Prepare/Default)
-
        # download live555
        $(eval $(call Download,live555))
        mkdir -p $(PKG_BUILD_DIR)/live
        $(TAR) -xf $(DL_DIR)/$(LIVE555_FILE) --strip=1 -C $(PKG_BUILD_DIR)/live
+       $(Build/Prepare/Default)
 endef
 
 define Package/v4l2rtspserver/install
diff --git a/multimedia/v4l2rtspserver/patches/001_live555_sprintf_format b/multimedia/v4l2rtspserver/patches/001_live555_sprintf_format
new file mode 100644 (file)
index 0000000..7d39c86
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/live/liveMedia/ServerMediaSession.cpp
++++ b/live/liveMedia/ServerMediaSession.cpp
+@@ -271,7 +271,7 @@ char* ServerMediaSession::generateSDPDes
+     char const* const sdpPrefixFmt =
+       "v=0\r\n"
+-      "o=- %ld%06ld %d IN %s %s\r\n"
++      "o=- %lld%06lld %d IN %s %s\r\n"
+       "s=%s\r\n"
+       "i=%s\r\n"
+       "t=0 0\r\n"