Skip to content

Fix OOB when odd-sized buffer is passed#94

Open
ruccho wants to merge 2 commits intomainfrom
feature/fix_odd_oob_yuv
Open

Fix OOB when odd-sized buffer is passed#94
ruccho wants to merge 2 commits intomainfrom
feature/fix_odd_oob_yuv

Conversation

@ruccho
Copy link
Collaborator

@ruccho ruccho commented Jan 30, 2026

In the conversion from BGRA32 to YUV420, the chroma planes (U and V) were subsampled every 2x2, but this caused out-of-bounds access when the input image dimensions were odd.

@ruccho ruccho force-pushed the feature/fix_odd_oob_yuv branch from 817eecd to de5ee70 Compare February 25, 2026 06:35
@ruccho ruccho marked this pull request as ready for review February 25, 2026 06:56
@ruccho ruccho requested a review from hkmt-mmy February 25, 2026 06:57
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