diff --git a/src/codec_aom.c b/src/codec_aom.c index 6bf2ea7ccc..76684295b4 100644 --- a/src/codec_aom.c +++ b/src/codec_aom.c @@ -827,7 +827,7 @@ static avifResult aomCodecEncodeImage(avifCodec * codec, int layerCount = encoder->extraLayerCount + 1; if (aom_codec_control(&codec->internal->encoder, AOME_SET_NUMBER_SPATIAL_LAYERS, layerCount) != AOM_CODEC_OK) { return AVIF_RESULT_UNKNOWN_ERROR; - }; + } } if (aomCpuUsed != -1) { if (aom_codec_control(&codec->internal->encoder, AOME_SET_CPUUSED, aomCpuUsed) != AOM_CODEC_OK) {