Skip to content
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

Fail early when trying to convert a jpeg+gainmap image without libxml2. #2526

Merged
merged 1 commit into from
Dec 20, 2024

Conversation

maryla-uc
Copy link
Collaborator

No description provided.

@maryla-uc maryla-uc merged commit 4db8f7e into AOMediaCodec:main Dec 20, 2024
17 checks passed
std::cout << "JPEG gainmap conversion unavailable because avifgainmaputil "
"was not built with libxml2.\n";
return AVIF_RESULT_NOT_IMPLEMENTED;
#endif
Copy link
Collaborator

Choose a reason for hiding this comment

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

I suggest enclosing the rest of the function in a #else block. Otherwise, some compilers may warn that the code afterthe return statement (line 37) is not reachable.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Done in #2530. Coverity warns about it.

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.

3 participants