Skip to content

Commit

Permalink
Remove effort param outside of version check
Browse files Browse the repository at this point in the history
  • Loading branch information
AttilaTheFun committed Oct 29, 2022
1 parent d6666eb commit 4881fd4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vips/foreign.c
Original file line number Diff line number Diff line change
Expand Up @@ -365,9 +365,9 @@ int set_heifsave_options(VipsOperation *operation, SaveParams *params) {

// https://github.com/libvips/libvips/blob/master/libvips/foreign/heifsave.c#L653
int set_avifsave_options(VipsOperation *operation, SaveParams *params) {
int ret = vips_object_set(
VIPS_OBJECT(operation), "compression", VIPS_FOREIGN_HEIF_COMPRESSION_AV1,
"lossless", params->heifLossless, "effort", params->heifEffort, NULL);
int ret = vips_object_set(VIPS_OBJECT(operation), "compression",
VIPS_FOREIGN_HEIF_COMPRESSION_AV1, "lossless",
params->heifLossless, NULL);

#if (VIPS_MAJOR_VERSION >= 8) && (VIPS_MINOR_VERSION >= 13)
if (!ret && params->heifBitdepth && params->heifEffort) {
Expand Down

0 comments on commit 4881fd4

Please sign in to comment.