Skip to content

Commit d2a1788

Browse files
committed
Fix cmake to add big endian compile option
Without this fix, mediastreamer2 doesn't have this compile option (CMakeLists.txt#L669) with CMake and it might create RTP packet with wrong payload type in header due to markbit field update (src/otherfilters/msrtp.c#L633)
1 parent a3f9253 commit d2a1788

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,6 @@ check_symbol_exists(sendmsg "sys/socket.h" HAVE_SENDMSG)
9999

100100
include(TestBigEndian)
101101
test_big_endian(WORDS_BIGENDIAN)
102-
if(WORDS_BIGENDIAN)
103-
set(ORTP_BIGENDIAN 1)
104-
endif()
105102

106103

107104
include_directories(
@@ -115,6 +112,9 @@ endif()
115112

116113

117114
set(ORTP_CPPFLAGS ${BCTOOLBOX_CPPFLAGS})
115+
if(WORDS_BIGENDIAN)
116+
list(APPEND ORTP_CPPFLAGS "-DORTP_BIGENDIAN")
117+
endif()
118118
if(ENABLE_STATIC)
119119
list(APPEND ORTP_CPPFLAGS "-DORTP_STATIC")
120120
endif()

0 commit comments

Comments
 (0)