[packages/mediastreamer-plugin-msopenh264] - updated URLs - added ms2-update patch from git to fix build with mediastreamer 4
qboosh
qboosh at pld-linux.org
Sun Jul 18 08:13:48 CEST 2021
commit 78bf2678a890017f888973e493279426d689d3df
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Jul 18 08:17:07 2021 +0200
- updated URLs
- added ms2-update patch from git to fix build with mediastreamer 4
mediastreamer-plugin-msopenh264.spec | 6 +++++-
msopenh264-ms2-update.patch | 40 ++++++++++++++++++++++++++++++++++++
2 files changed, 45 insertions(+), 1 deletion(-)
---
diff --git a/mediastreamer-plugin-msopenh264.spec b/mediastreamer-plugin-msopenh264.spec
index 8df4362..ed86bd0 100644
--- a/mediastreamer-plugin-msopenh264.spec
+++ b/mediastreamer-plugin-msopenh264.spec
@@ -5,9 +5,12 @@ Version: 1.2.1
Release: 9
License: GPL v2+
Group: Libraries
-Source0: https://linphone.org/releases/sources/plugins/msopenh264/msopenh264-%{version}.tar.gz
+#Source0Download: https://gitlab.linphone.org/BC/public/msopenh264/-/tags
+#Source0: https://gitlab.linphone.org/BC/public/msopenh264/-/archive/%{version}/msopenh264-%{version}.tar.bz2
+Source0: https://linphone.org/releases/old/sources/plugins/msopenh264/msopenh264-%{version}.tar.gz
# Source0-md5: 8e4dfaed03dbe10d1b32d70eea23ce9c
Patch0: %{name}-openh264.patch
+Patch1: msopenh264-ms2-update.patch
URL: http://www.linphone.org/technical-corner/mediastreamer2/overview
BuildRequires: autoconf >= 2.50
BuildRequires: automake
@@ -31,6 +34,7 @@ opartą na bibliotece openh264.
%prep
%setup -q -n msopenh264-%{version}
%patch0 -p1
+%patch1 -p1
%build
%{__libtoolize}
diff --git a/msopenh264-ms2-update.patch b/msopenh264-ms2-update.patch
new file mode 100644
index 0000000..e9a8336
--- /dev/null
+++ b/msopenh264-ms2-update.patch
@@ -0,0 +1,40 @@
+From 87b973e0560a590db0aed0bf657c4e79dfc72f7f Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micka=C3=ABl=20Turnel?=
+ <mickael.turnel at belledonne-communications.com>
+Date: Thu, 30 Nov 2017 15:50:17 +0100
+Subject: [PATCH] Fix H264 not using defined MTU
+
+---
+ src/msopenh264dec.cpp | 2 +-
+ src/msopenh264enc.cpp | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/msopenh264dec.cpp b/src/msopenh264dec.cpp
+index 0662246..c13c704 100644
+--- a/src/msopenh264dec.cpp
++++ b/src/msopenh264dec.cpp
+@@ -59,7 +59,7 @@ void MSOpenH264Decoder::initialize()
+ {
+ if (!mInitialized) {
+ mFirstImageDecoded = false;
+- mUnpacker=rfc3984_new();
++ mUnpacker=rfc3984_new_with_factory(mFilter->factory);
+ if (mDecoder != 0) {
+ SDecodingParam params = { 0 };
+ #if (OPENH264_MAJOR == 1) && (OPENH264_MINOR >=6)
+diff --git a/src/msopenh264enc.cpp b/src/msopenh264enc.cpp
+index 66637e7..e9bf1bd 100644
+--- a/src/msopenh264enc.cpp
++++ b/src/msopenh264enc.cpp
+@@ -85,7 +85,7 @@ MSOpenH264Encoder::~MSOpenH264Encoder()
+ void MSOpenH264Encoder::initialize()
+ {
+ mFrameCount = 0;
+- mPacker = rfc3984_new();
++ mPacker = rfc3984_new_with_factory(mFilter->factory);
+ if (mPacketisationModeSet)
+ rfc3984_set_mode(mPacker, mPacketisationMode);
+ else rfc3984_set_mode(mPacker, 1); // in absence of explicit directive from the other end, allow mode 1 because it allows to send big slices which is necessary for large images
+--
+GitLab
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mediastreamer-plugin-msopenh264.git/commitdiff/78bf2678a890017f888973e493279426d689d3df
More information about the pld-cvs-commit
mailing list