From 8c6cbd5792afee41a77f740ec53459de27bd6650 Mon Sep 17 00:00:00 2001 From: Alexis Ballier Date: Mon, 19 Jun 2017 18:15:50 +0200 Subject: media-libs/libmp4v2: Fix build with gcc7, patch by Collin Day in bug #600892 Package-Manager: Portage-2.3.6, Repoman-2.3.2 --- media-libs/libmp4v2/files/gcc7.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 media-libs/libmp4v2/files/gcc7.patch (limited to 'media-libs/libmp4v2/files') 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); -- cgit v1.2.3-65-gdbad