pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/multimedia/mp4v2/patches mp4v2: Add forgotten patch



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4f639e23636c
branches:  trunk
changeset: 443581:4f639e23636c
user:      triaxx <triaxx%pkgsrc.org@localhost>
date:      Thu Dec 17 09:16:42 2020 +0000

description:
mp4v2: Add forgotten patch

diffstat:

 multimedia/mp4v2/patches/patch-src_rtphint.cpp |  15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diffs (19 lines):

diff -r 3a7bfad8c767 -r 4f639e23636c multimedia/mp4v2/patches/patch-src_rtphint.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/mp4v2/patches/patch-src_rtphint.cpp    Thu Dec 17 09:16:42 2020 +0000
@@ -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