-
Notifications
You must be signed in to change notification settings - Fork 200
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
avifRWDataRealloc,avifRWDataSet return avifResult #1478
Conversation
Also avifImageSetProfileICC(), avifImageSetMetadataExif(), avifImageSetMetadataXMP() and avifCodecEncodeOutputAddSample(). To catch out-of-memory issues. Bug: AOMediaCodec#820
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yannis: Thank you very much for writing this pull request. This is something we need to complete before declaring the API as stable (i.e., version 1.0.0).
I have some suggested changes. Please read my comments in rawdata.c first (about the alternative in avifRWDataRealloc()
).
Free resources in aviftest.c. Change TODO syntax to match style guide.
Also avifImageSetMetadataExif(), avifImageSetMetadataXMP() and avifCodecEncodeOutputAddSample().
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. You can merge the pull request after addressing the review comments. I can do a post-commit review. Thanks again for writing this pull request.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yannis: I verified that this pull request changes the prototypes of all the remaining public functions that may fail because of memory allocation failures. This is an important step towards a stable v1.0.0 API. Thanks a lot!
and avifImageSetProfileICC() even with NULL arg.
Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Also
avifImageSetProfileICC()
,avifImageSetMetadataExif()
,avifImageSetMetadataXMP()
andavifCodecEncodeOutputAddSample()
. To catch out-of-memory issues.Bug: #820
Suggested follow-ups:
AVIF_RESULT_OUT_OF_MEMORY
to all sites calling a function listed above (not done in this change to keep it at a reasonable size)abort()
inmakeRoom()