Move a comment about still image encoding That comment describes the (addImageFlags & AVIF_ADD_IMAGE_FLAG_SINGLE) check, which was moved in https://github.com/AOMediaCodec/libavif/pull/2970.
diff --git a/src/codec_aom.c b/src/codec_aom.c index 082ef03..65ae15e 100644 --- a/src/codec_aom.c +++ b/src/codec_aom.c
@@ -672,6 +672,7 @@ // - Option of choosing tune IQ (which requires AOM_USAGE_ALL_INTRA) avifBool useAllIntraForLayered = encoder->extraLayerCount == 1 && codec->internal->qualityFirstLayer <= TWO_LAYER_ALL_INTRA_QUALITY_THRESHOLD; + // Also use all-intra encoding when encoding still images. avifBool useAllIntra = (addImageFlags & AVIF_ADD_IMAGE_FLAG_SINGLE) || useAllIntraForLayered; // Map encoder speed to AOM usage + CpuUsed: @@ -687,7 +688,7 @@ // Speed 9: RealTime CpuUsed 9 // Speed 10: RealTime CpuUsed 9 unsigned int aomUsage = AOM_USAGE_GOOD_QUALITY; - // Use AOM_USAGE_ALL_INTRA (added in https://crbug.com/aomedia/2959) for still image encoding if available. + // Use AOM_USAGE_ALL_INTRA (added in https://crbug.com/aomedia/2959) if available. #if defined(AOM_USAGE_ALL_INTRA) if (useAllIntra) { aomUsage = AOM_USAGE_ALL_INTRA;