diff --git a/multimedia/video/libmp4v2/files/libmp4v2-c++11.patch b/multimedia/video/libmp4v2/files/libmp4v2-c++11.patch
new file mode 100644
index 0000000000..aea63b0e6a
--- /dev/null
+++ b/multimedia/video/libmp4v2/files/libmp4v2-c++11.patch
@@ -0,0 +1,11 @@
+--- src/rtphint.cpp 2012-05-20 16:11:53.000000000 -0600
++++ src/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);
diff --git a/multimedia/video/libmp4v2/pspec.xml b/multimedia/video/libmp4v2/pspec.xml
index b4c562b309..e8eb66fe89 100644
--- a/multimedia/video/libmp4v2/pspec.xml
+++ b/multimedia/video/libmp4v2/pspec.xml
@@ -17,6 +17,9 @@
libgcc
+
+ libmp4v2-c++11.patch
+