Thanks to visit codestin.com
Credit goes to github.com

Skip to content

readUnsignedMediumInt sign extension fix#407

Merged
mondain merged 1 commit intoRed5:mainfrom
kdkd:cherry-pick-9e548f9-20251126-133722
Nov 26, 2025
Merged

readUnsignedMediumInt sign extension fix#407
mondain merged 1 commit intoRed5:mainfrom
kdkd:cherry-pick-9e548f9-20251126-133722

Conversation

@kdkd
Copy link

@kdkd kdkd commented Nov 26, 2025

Commit from kdkd fork 9e548f9

io/utils/BufferUtils.java: built the value with signed byte arithmetic and, if negative, only added 256. Negative 24-bit values were not sign-extended correctly, so decoded numbers were wrong. Fixed by sign-extending the high byte.


…c and, if negative, only added 256.

Negative 24-bit values were not sign-extended correctly, so decoded numbers were wrong.
Fixed by sign-extending the high byte.
@mondain mondain merged commit f663091 into Red5:main Nov 26, 2025
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