Browse Source

v4l2rtspserver: patch live555

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

+ 3
- 4
multimedia/v4l2rtspserver/Makefile View File

@ -16,8 +16,8 @@ PKG_SOURCE_URL:=https://github.com/mpromonet/v4l2rtspserver
PKG_SOURCE_VERSION:=v$(PKG_VERSION) PKG_SOURCE_VERSION:=v$(PKG_VERSION)
PKG_MIRROR_HASH:=f047fd24441a070b123252bf82c7d7e42bb0c3280b78ad2ddb01cf200acc3a32 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 LIVE555_FILE:=live.$(LIVE555_VERSION).tar.gz
PKG_MAINTAINER:=Roger Dammit <rogerdammit@gmail.com> 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" -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 define Build/Prepare
$(Build/Prepare/Default)
# download live555 # download live555
$(eval $(call Download,live555)) $(eval $(call Download,live555))
mkdir -p $(PKG_BUILD_DIR)/live mkdir -p $(PKG_BUILD_DIR)/live
$(TAR) -xf $(DL_DIR)/$(LIVE555_FILE) --strip=1 -C $(PKG_BUILD_DIR)/live $(TAR) -xf $(DL_DIR)/$(LIVE555_FILE) --strip=1 -C $(PKG_BUILD_DIR)/live
$(Build/Prepare/Default)
endef endef
define Package/v4l2rtspserver/install define Package/v4l2rtspserver/install


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

@ -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"

Loading…
Cancel
Save