-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Fix Ogg ov_read call on big-endian systems #3340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Pull Request Test Coverage Report for Build 12224968092Details
💛 - Coveralls |
Would you please share the test failure? |
Note this build has some patches so they're not "pure". -rc1 only has build system patches though which I don't think will affect this MR. The other -rc1 builds: https://buildd.debian.org/status/logs.php?pkg=libsfml&ver=3.0.0%7Erc1%2Bdfsg-1 |
As an aside, please reach out if you would like to potentially upstream any of those patches. I'm always interested in doing what I can to make the lives of package managers easier! You can find my email in the commit history or reach out in our Discord server. |
cb4ef89 to
d39bb92
Compare
ChrisThrasher
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made a few minor style changes. Thanks for the PR!
In the `ov_read` API, the fouth parameter says what endianness the samples should be returned in - `0` for little-endian, and `1` for big-endian. SFML wants samples in the host endian, so we need to set this parameter to 1 on big-endian systems. Fixes a unit test failure on big-endian systems.
d39bb92 to
56ffb70
Compare
Description
In the
ov_readAPI, the fouth parameter says what endianness the samples should be returned in -0for little-endian, and1for big-endian. SFML wants samples in the host endian, so we need to set this parameter to 1 on big-endian systems.Fixes a unit test failure on big-endian systems.
There's a very old forum thread mentioning this: https://en.sfml-dev.org/forums/index.php?topic=22653
Tasks
How to test this PR?
I have run the testsuite on a big-endian system and it passes with this change (it was previously failing).