Set the cqLevelSet boolean correctly
Set the cqLevelSet boolean correctly when libaom has the
aom_codec_set_option() function.
Fix https://github.com/AOMediaCodec/libavif/issues/953.
diff --git a/src/codec_aom.c b/src/codec_aom.c
index e9360ef..3b06147 100644
--- a/src/codec_aom.c
+++ b/src/codec_aom.c
@@ -464,6 +464,9 @@
aom_codec_error_detail(&codec->internal->encoder));
return AVIF_FALSE;
}
+ if (!strcmp(key, "cq-level")) {
+ codec->internal->cqLevelSet = AVIF_TRUE;
+ }
#else // !defined(HAVE_AOM_CODEC_SET_OPTION)
avifBool match = AVIF_FALSE;
for (int j = 0; aomOptionDefs[j].name; ++j) {