Skip to content

Fix cmake to add big endian compile option#13

Open
abioteau wants to merge 1 commit intoBelledonneCommunications:masterfrom
abioteau:patch-1
Open

Fix cmake to add big endian compile option#13
abioteau wants to merge 1 commit intoBelledonneCommunications:masterfrom
abioteau:patch-1

Conversation

@abioteau
Copy link

@abioteau abioteau commented Jun 9, 2022

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)

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)
@barracuda156
Copy link

Shouldn’t it be fixed in mediastreamer2 then?

@abioteau
Copy link
Author

abioteau commented Oct 9, 2025

It should also

@barracuda156
Copy link

I just got an impression from the description that the issue is that the flag does not end up in CMake config and mediastreamer2 subsequently does not pick it automatically.

Is ortp itself built wrongly on BE without this flag?

@abioteau
Copy link
Author

It is absolutely necessary for ortp in order to define ORTP_BIGENDIAN which is used in lines :

@barracuda156
Copy link

barracuda156 commented Oct 11, 2025

@abioteau Thank you. I wonder if just changing ifdef to if gonna work, can’t remember if CMake propagates values without a flag. But passing the flag should work for sure.

UPD. You are right, without this it is broken.

Copy link

@barracuda156 barracuda156 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can confirm that without this wrong endianness it used.

@barracuda156
Copy link

@abioteau You need to rebase it though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants