pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/multimedia/mp4v2/patches
Module Name: pkgsrc
Committed By: triaxx
Date: Thu Dec 17 09:16:42 UTC 2020
Added Files:
pkgsrc/multimedia/mp4v2/patches: patch-src_rtphint.cpp
Log Message:
mp4v2: Add forgotten patch
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/multimedia/mp4v2/patches/patch-src_rtphint.cpp
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/multimedia/mp4v2/patches/patch-src_rtphint.cpp
diff -u /dev/null pkgsrc/multimedia/mp4v2/patches/patch-src_rtphint.cpp:1.1
--- /dev/null Thu Dec 17 09:16:42 2020
+++ pkgsrc/multimedia/mp4v2/patches/patch-src_rtphint.cpp Thu Dec 17 09:16:42 2020
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_rtphint.cpp,v 1.1 2020/12/17 09:16:42 triaxx Exp $
+
+Fix forbidden comparison between pointer and integer (Github pull request #42).
+
+--- src/rtphint.cpp.orig 2020-12-07 23:16:32.000000000 +0000
++++ src/rtphint.cpp
+@@ -339,7 +339,7 @@ void MP4RtpHintTrack::GetPayload(
+ 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);
Home |
Main Index |
Thread Index |
Old Index