opnsense-ports/multimedia/mp4v2/files/patch-src_rtphint.cpp
Franco Fichtner e7f30ee304 */*: sync with upstream
Taken from: HardenedBSD
2019-08-28 06:03:29 +02:00

15 lines
733 B
C++

src/rtphint.cpp:348:32: error: comparison between pointer and integer ('const char *' and 'int')
if (pSlash != '\0') {
~~~~~~ ^ ~~~~
--- src/rtphint.cpp.orig 2012-05-20 22:11:53 UTC
+++ 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);