Skip to content

Commit

Permalink
only enable AOM encoder speed level 9 when running AOM >= 3.0.0 (see #…
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Apr 19, 2021
1 parent 4a1300a commit 29c898c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion libheif/heif_encoder_aom.cc
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,13 @@ static void aom_init_parameters()
p->has_default = true;
p->integer.have_minimum_maximum = true;
p->integer.minimum = 0;
p->integer.maximum = 9;

if (aom_codec_version_major() >= 3) {
p->integer.maximum = 9;
}
else {
p->integer.maximum = 8;
}
p->integer.valid_values = NULL;
p->integer.num_valid_values = 0;
d[i++] = p++;
Expand Down

0 comments on commit 29c898c

Please sign in to comment.