Skip to content

Fix ocioconvert invalid bidepth handling#2323

Open
zlrs1013 wants to merge 1 commit into
AcademySoftwareFoundation:mainfrom
zlrs1013:fix-ocioconvert-invalid-bitdepth
Open

Fix ocioconvert invalid bidepth handling#2323
zlrs1013 wants to merge 1 commit into
AcademySoftwareFoundation:mainfrom
zlrs1013:fix-ocioconvert-invalid-bitdepth

Conversation

@zlrs1013

Copy link
Copy Markdown

Fixes #2110

This updates ocioconvert so an invalid --bitdepth value reports a normal CLI error and usage text instead of throwing an uncaught exception.

Verified with:

cmake --build build --target ocioconvert --config Release
.\build\src\apps\ocioconvert\Release\ocioconvert.exe --bitdepth 32 --view input.exr "ACES2065-1" output.exr "sRGB - Display" "ACES 2.0 - SDR 100 nits (Rec.709)"

Signed-off-by: zial <zhenlai1013@gmail.com>
@linux-foundation-easycla

linux-foundation-easycla Bot commented Jun 28, 2026

Copy link
Copy Markdown

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: zlrs1013 / name: zial (4f737a1)

@zlrs1013

Copy link
Copy Markdown
Author

I checked the failing Read the Docs build. It appears unrelated to this PR. The build failure appears to be related to a .readthedocs.yml config validation error for build.os, while this PR only changes src/apps/ocioconvert/main.cpp.

@doug-walker doug-walker left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution Zhen!

Yes, the ReadTheDocs issue is unrelated to your work.

Comment thread src/apps/ocioconvert/main.cpp

@doug-walker doug-walker left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you Zhen!

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.

ocioconvert silently errors out when given invalid bitdepth running on Windows

2 participants