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

Handle avifDecoderCreate and avifEncoderCreate errors #21

Merged
merged 18 commits into from
Feb 12, 2025

Conversation

radarhere
Copy link

@radarhere radarhere commented Feb 12, 2025

Suggestions for python-pillow#5201

Looking at https://github.com/AOMediaCodec/libavif/blob/906a8a5bd18a744f0e2e603e1841c1ef5e712677/src/codec_aom.c#L749-L753, I found that libavif limits the number of threads in aom itself - so there should be no need for our code to also limit it to 64.

@radarhere radarhere changed the title Libavif plugin libavif limits maxThreads itself Feb 12, 2025
@fdintino
Copy link
Owner

fdintino commented Feb 12, 2025

As far as the commit from which the PR's title is taken: libavif has only limited max threads since 1.1.0 (see the discussion here). This was actually added to pillow-avif-plugin in response to a bug report: fdintino/pillow-avif-plugin#23.

We should probably document a new minimum version if we want to require it.

(edit: the version was actually 1.1.0, not 1.0.2)

@radarhere radarhere changed the title libavif limits maxThreads itself Handle avifDecoderCreate and avifEncoderCreate errors Feb 12, 2025
@radarhere
Copy link
Author

Ok, thanks - I've removed that commit.

@fdintino fdintino merged commit 0590f08 into fdintino:libavif-plugin Feb 12, 2025
49 of 50 checks passed
@radarhere radarhere deleted the libavif-plugin branch February 12, 2025 20:54
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