Skip to content

fix: normalize VideoFrame rotation to 0, 90, 180 or 270 - #457

Merged
devopvoid merged 1 commit into
mainfrom
fix/video-frame-rotation
Oct 26, 2026
Merged

devopvoid merged 1 commit into
mainfrom
fix/video-frame-rotation

Conversation

@devopvoid

Copy link
Copy Markdown
Owner

VideoFrame accepts any multiple of 90°, but the Swing and JavaFX views swap width and height only for exactly 90 or 270, so a frame with -90 or 450 was scaled wrongly and could be cut off.

The constructor now keeps the rotation as its equivalent in 0, 90, 180 or 270, so the views, the native decoder wrapper and applications only ever see those values. Both views get a test comparing -90 with 270 and 450 with 90.

@devopvoid
devopvoid merged commit 764337d into main Oct 26, 2026
14 checks passed
@devopvoid
devopvoid deleted the fix/video-frame-rotation branch October 26, 2026 17:18
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.

1 participant