Skip to content

fix: check strides and plane sizes of custom I420 buffers - #454

Merged
devopvoid merged 1 commit into
mainfrom
fix/bound-custom-i420-buffers
Oct 26, 2026
Merged

devopvoid merged 1 commit into
mainfrom
fix/bound-custom-i420-buffers

Conversation

@devopvoid

Copy link
Copy Markdown
Owner

A Java I420Buffer (e.g. from a VideoProcessor or a Java decoder) whose stride is below its width or whose planes are too small made the native copy read past them. Such buffers, and sizes WebRTC cannot allocate, are now rejected with a RuntimeException.

…ing them

A Java I420Buffer whose stride is below its width or whose planes are too small made the native copy read past them. Reject such buffers, and sizes WebRTC cannot allocate, with a RuntimeException.
@devopvoid
devopvoid merged commit c043b22 into main Oct 26, 2026
22 checks passed
@devopvoid
devopvoid deleted the fix/bound-custom-i420-buffers branch October 26, 2026 15: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