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

fix: Make sure the decoder options isn't freed #21

Merged
merged 1 commit into from Apr 14, 2024

Conversation

hfiguiere
Copy link
Contributor

  • This caused the decoding options to not work as intended
  • valgrind was unhappy

Without the as_ref(), the decoding_options gets dropped, dropping the allocated inner. Then the values inside become garbage, including ignore_transformations.

Note: there is no testing of this in the teste suite. I couldn't figure out how make a proper sample as merely changing the orientation with ExifTool isn't enough. If I figure it out, I can submit a PR testing ignore_transformations.

- This caused the decoding options to not work as intended
- valgrind was unhappy

Signed-off-by: Hubert Figuière <hub@figuiere.net>
gnomesysadmins pushed a commit to GNOME/niepce that referenced this pull request Apr 13, 2024
The images however are pre-rotated as we can't disable it due to
bug Cykooz/libheif-rs#21
Instead we reset the Exif orienation to 1.

Signed-off-by: Hubert Figuière <hub@figuiere.net>
gnomesysadmins pushed a commit to GNOME/niepce that referenced this pull request Apr 13, 2024
The images however are pre-rotated as we can't disable it due to
bug Cykooz/libheif-rs#21
Instead we reset the Exif orienation to 1.

Signed-off-by: Hubert Figuière <hub@figuiere.net>
@Cykooz Cykooz merged commit 7c273e0 into Cykooz:master Apr 14, 2024
1 check passed
@Cykooz
Copy link
Owner

Cykooz commented Apr 14, 2024

Thank you.

@hfiguiere hfiguiere deleted the decode-options branch April 14, 2024 17:01
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.

None yet

2 participants