Skip to content

Avoid silently wrong results on 10bit CUDA #777

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

NicolasHug
Copy link
Member

Addresses #736 and #598.

Some 10bit videos are properly decoded by NVDEC, but are passed as-is to the NPP color conversion functions, which expect 8bits videos. This results in garbage output. This PR adds a check to prevent such incorrect conversion. It does not add support for 10 bit videos on CUDA. It just avoids silently wrong results.

@NicolasHug NicolasHug added the bug Something isn't working label Jul 13, 2025
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jul 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working CLA Signed This label is managed by the Meta Open Source bot.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants