summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2017-06-19 18:15:50 +0200
committerAlexis Ballier <aballier@gentoo.org>2017-06-19 18:16:06 +0200
commit8c6cbd5792afee41a77f740ec53459de27bd6650 (patch)
tree23a9114b7c5bb98376e50ee0dc7960930b67c645 /media-libs/libmp4v2/files
parentsys-apps/hwloc: keyword ~arm64 (diff)
downloadgentoo-8c6cbd5792afee41a77f740ec53459de27bd6650.tar.gz
gentoo-8c6cbd5792afee41a77f740ec53459de27bd6650.tar.bz2
gentoo-8c6cbd5792afee41a77f740ec53459de27bd6650.zip
media-libs/libmp4v2: Fix build with gcc7, patch by Collin Day in bug #600892
Package-Manager: Portage-2.3.6, Repoman-2.3.2
Diffstat (limited to 'media-libs/libmp4v2/files')
-rw-r--r--media-libs/libmp4v2/files/gcc7.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/media-libs/libmp4v2/files/gcc7.patch b/media-libs/libmp4v2/files/gcc7.patch
new file mode 100644
index 000000000000..fbfae97e58c0
--- /dev/null
+++ b/media-libs/libmp4v2/files/gcc7.patch
@@ -0,0 +1,13 @@
+https://bugs.gentoo.org/show_bug.cgi?id=600892
+
+--- mp4v2-2.0.0/src/rtphint.cpp 2012-05-20 16:11:53.000000000 -0600
++++ /tmp/rtphint.cpp 2017-05-16 10:25:26.930705191 -0600
+@@ -339,7 +339,7 @@
+ pSlash = strchr(pSlash, '/');
+ if (pSlash != NULL) {
+ pSlash++;
+- if (pSlash != '\0') {
++ if (*pSlash != '\0') {
+ length = (uint32_t)strlen(pRtpMap) - (pSlash - pRtpMap);
+ *ppEncodingParams = (char *)MP4Calloc(length + 1);
+ strncpy(*ppEncodingParams, pSlash, length);