mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-07 06:40:06 +00:00
multimedia/msopenh264: Update 1.2.1 -> 1.2.1.20220531
This fixed build broken by the recent update of net/mediastreamer
This commit is contained in:
parent
40da840a95
commit
4c1779fcd4
@ -1,8 +1,7 @@
|
||||
PORTNAME= msopenh264
|
||||
PORTVERSION= 1.2.1
|
||||
PORTREVISION= 2
|
||||
PORTVERSION= 1.2.1.20220531
|
||||
CATEGORIES= multimedia net
|
||||
MASTER_SITES= https://www.linphone.org/releases/sources/plugins/msopenh264/
|
||||
#MASTER_SITES= https://www.linphone.org/releases/sources/plugins/msopenh264/
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= Mediastreamer plugin with H.264 codec
|
||||
@ -10,12 +9,19 @@ COMMENT= Mediastreamer plugin with H.264 codec
|
||||
LICENSE= GPLv2+
|
||||
LICENSE_FILE= ${WRKSRC}/COPYING
|
||||
|
||||
LIB_DEPENDS= libmediastreamer_base.so:net/mediastreamer \
|
||||
LIB_DEPENDS= libbctoolbox.so:net/bctoolbox \
|
||||
libmediastreamer.so:net/mediastreamer \
|
||||
libopenh264.so:multimedia/openh264 \
|
||||
libortp.so:net/ortp
|
||||
|
||||
USES= cmake
|
||||
|
||||
USE_GITLAB= yes
|
||||
GL_SITE= https://gitlab.linphone.org/BC
|
||||
GL_ACCOUNT= public
|
||||
GL_COMMIT= c09d2652245f0d660f427c1cf5ae97709b504803
|
||||
|
||||
|
||||
CMAKE_ARGS= -DENABLE_STATIC=NO
|
||||
PLIST_FILES= lib/mediastreamer/plugins/libmsopenh264.so
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
TIMESTAMP = 1539620002
|
||||
SHA256 (msopenh264-1.2.1.tar.gz) = a8622752fcc8a3cbbcfb3ffa2fe0f8419aceebb8d5dc2bca03a68852bf7abd65
|
||||
SIZE (msopenh264-1.2.1.tar.gz) = 29665
|
||||
TIMESTAMP = 1657783494
|
||||
SHA256 (public-msopenh264-c09d2652245f0d660f427c1cf5ae97709b504803_GL0.tar.gz) = a4ef25d71b28b0e1b53d88d507ce01738fd875f5aef335f4412b9fba0b56bcec
|
||||
SIZE (public-msopenh264-c09d2652245f0d660f427c1cf5ae97709b504803_GL0.tar.gz) = 29893
|
||||
|
@ -1,35 +0,0 @@
|
||||
src/msopenh264dec.cpp:67:11: error: no member named 'eOutputColorFormat' in 'TagSVCDecodingParam'
|
||||
params.eOutputColorFormat = videoFormatI420;
|
||||
~~~~~~ ^
|
||||
src/msopenh264enc.cpp:134:29: error: no member named 'sSliceCfg' in 'SSpatialLayerConfig'
|
||||
params.sSpatialLayers[0].sSliceCfg.uiSliceMode = SM_DYN_SLICE;
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~ ^
|
||||
src/msopenh264enc.cpp:134:53: error: use of undeclared identifier 'SM_DYN_SLICE'
|
||||
params.sSpatialLayers[0].sSliceCfg.uiSliceMode = SM_DYN_SLICE;
|
||||
^
|
||||
src/msopenh264enc.cpp:135:29: error: no member named 'sSliceCfg' in 'SSpatialLayerConfig'
|
||||
params.sSpatialLayers[0].sSliceCfg.sSliceArgument.uiSliceSizeConstraint = ms_factory_get_payload_max_size(mFilter->factory);
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~ ^
|
||||
|
||||
--- src/msopenh264dec.cpp.orig 2016-10-19 15:32:52 UTC
|
||||
+++ src/msopenh264dec.cpp
|
||||
@@ -62,7 +62,7 @@ void MSOpenH264Decoder::initialize()
|
||||
mUnpacker=rfc3984_new();
|
||||
if (mDecoder != 0) {
|
||||
SDecodingParam params = { 0 };
|
||||
-#if (OPENH264_MAJOR == 1) && (OPENH264_MINOR >=6)
|
||||
+#if (OPENH264_MAJOR > 1) || ((OPENH264_MAJOR == 1) && (OPENH264_MINOR >=6))
|
||||
#else
|
||||
params.eOutputColorFormat = videoFormatI420;
|
||||
#endif
|
||||
--- src/msopenh264enc.cpp.orig 2017-07-20 13:56:32 UTC
|
||||
+++ src/msopenh264enc.cpp
|
||||
@@ -127,7 +127,7 @@ void MSOpenH264Encoder::initialize()
|
||||
params.sSpatialLayers[0].iSpatialBitrate = targetBitrate;
|
||||
params.sSpatialLayers[0].iMaxSpatialBitrate = maxBitrate;
|
||||
|
||||
-#if (OPENH264_MAJOR == 1) && (OPENH264_MINOR >=6)
|
||||
+#if (OPENH264_MAJOR > 1) || ((OPENH264_MAJOR == 1) && (OPENH264_MINOR >=6))
|
||||
params.sSpatialLayers[0].sSliceArgument.uiSliceMode = SM_SIZELIMITED_SLICE;
|
||||
params.sSpatialLayers[0].sSliceArgument.uiSliceSizeConstraint = ms_factory_get_payload_max_size(mFilter->factory);
|
||||
#else
|
Loading…
Reference in New Issue
Block a user