pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/multimedia/libmp4v2 libmp4v2: gcc7 build fix



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c49fab282a19
branches:  trunk
changeset: 372876:c49fab282a19
user:      markd <markd%pkgsrc.org@localhost>
date:      Tue Dec 19 10:08:14 2017 +0000

description:
libmp4v2: gcc7 build fix

diffstat:

 multimedia/libmp4v2/Makefile                            |   4 ++--
 multimedia/libmp4v2/distinfo                            |   3 ++-
 multimedia/libmp4v2/patches/patch-lib_mp4v2_rtphint.cpp |  15 +++++++++++++++
 3 files changed, 19 insertions(+), 3 deletions(-)

diffs (50 lines):

diff -r 6f2e36320dba -r c49fab282a19 multimedia/libmp4v2/Makefile
--- a/multimedia/libmp4v2/Makefile      Tue Dec 19 10:08:08 2017 +0000
+++ b/multimedia/libmp4v2/Makefile      Tue Dec 19 10:08:14 2017 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.18 2017/09/25 22:30:06 joerg Exp $
+# $NetBSD: Makefile,v 1.19 2017/12/19 10:08:14 markd Exp $
 
 DISTNAME=              mpeg4ip-1.6.1
 PKGNAME=               libmp4v2-1.6.1
-PKGREVISION=           6
+PKGREVISION=           7
 CATEGORIES=            multimedia
 # distfile at sf is corrupt
 #MASTER_SITES=         ${MASTER_SITE_SOURCEFORGE:=mpeg4ip/}
diff -r 6f2e36320dba -r c49fab282a19 multimedia/libmp4v2/distinfo
--- a/multimedia/libmp4v2/distinfo      Tue Dec 19 10:08:08 2017 +0000
+++ b/multimedia/libmp4v2/distinfo      Tue Dec 19 10:08:14 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.17 2017/09/25 22:30:06 joerg Exp $
+$NetBSD: distinfo,v 1.18 2017/12/19 10:08:14 markd Exp $
 
 SHA1 (mpeg4ip-1.6.1.tar.gz) = 2af97fc0da6a5c0bcb7b433c6715967487b80e38
 RMD160 (mpeg4ip-1.6.1.tar.gz) = ee8375d9581cccbbf685f730bb36f3866eaf12f7
@@ -87,6 +87,7 @@
 SHA1 (patch-lib_mp4_vmhd.c) = 79035ada521e970b460a6ffffc77ee8f7b62707f
 SHA1 (patch-lib_mp4v2_atom__standard.cpp) = 27a2bac270ac4a1fd5169d89d312690a4dcb58ab
 SHA1 (patch-lib_mp4v2_mp4atom.cpp) = ad0a1006293d8bea250de695919d8cdc59a7a4fa
+SHA1 (patch-lib_mp4v2_rtphint.cpp) = 670c658388b1b7b8e57e02971560ca18e89d48d0
 SHA1 (patch-lib_rtp_net__udp.c) = 3250d0ebcc0899ec4521eb20bc83f6e8a8bce3c9
 SHA1 (patch-lib_utils_config__opts.cpp) = 15a385df3635b9441ceacf898031ce0a94d1cd0e
 SHA1 (patch-player_lib_audio_faad_config.c) = 6448e02ed9f95fc94bca986958ac61c0bf0ec752
diff -r 6f2e36320dba -r c49fab282a19 multimedia/libmp4v2/patches/patch-lib_mp4v2_rtphint.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/libmp4v2/patches/patch-lib_mp4v2_rtphint.cpp   Tue Dec 19 10:08:14 2017 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-lib_mp4v2_rtphint.cpp,v 1.1 2017/12/19 10:08:14 markd Exp $
+
+gcc7 fix
+
+--- lib/mp4v2/rtphint.cpp.orig 2007-04-30 20:29:28.000000000 +0000
++++ lib/mp4v2/rtphint.cpp
+@@ -342,7 +342,7 @@ void MP4RtpHintTrack::GetPayload(
+                         pSlash = strchr(pSlash, '/');
+                         if (pSlash != NULL) {
+                           pSlash++;
+-                          if (pSlash != '\0') {
++                          if (*pSlash != '\0') {
+                             length = strlen(pRtpMap) - (pSlash - pRtpMap);
+                             *ppEncodingParams = (char *)MP4Calloc(length + 1);
+                             strncpy(*ppEncodingParams, pSlash, length);



Home | Main Index | Thread Index | Old Index