Skip to content

Commit

Permalink
only enable AOM encoder speed level 9 when running AOM >= 3.0.0 (see s…
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk authored and 1div0 committed May 14, 2021
1 parent 72e6542 commit d8a39f9
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 d8a39f9

Please sign in to comment.