Skip to content

Validate bit depth in uvg266 encoder - #1859

Merged
farindk merged 1 commit into
strukturag:masterfrom
torusrxxx:patch-4
Sep 6, 2026
Merged

farindk merged 1 commit into
strukturag:masterfrom
torusrxxx:patch-4

Conversation

@torusrxxx

Copy link
Copy Markdown
Contributor

uvg266 seems to only support 8-bit, and the existing bit depth detection is flawed because the upstream ignores the bit depth passed in (https://github.com/ultravideo/uvg266/blob/fb17bbc1ca64ca059293f45627886b1faa2faff7/src/uvg266.c#L423). Adds direct validation to only accept 8-bit images.

Add error handling for unsupported bit depth in encoder.
@farindk
farindk merged commit 6c167db into strukturag:master Sep 6, 2026
39 of 40 checks passed
@farindk

farindk commented Sep 6, 2026

Copy link
Copy Markdown
Member

Thanks, merged. Also added some changes to more accurately check bpp of the input images (51360e1, b3940a4).

@torusrxxx
torusrxxx deleted the patch-4 branch September 8, 2026 03: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.

2 participants