diff --git a/include/avif/internal.h b/include/avif/internal.h index 7b96b66d4a..687c8ca249 100644 --- a/include/avif/internal.h +++ b/include/avif/internal.h @@ -196,9 +196,9 @@ typedef enum avifSampleTransformTokenType typedef struct avifSampleTransformToken { uint8_t type; // avifSampleTransformTokenType - int32_t constant; // If value is AVIF_SAMPLE_TRANSFORM_CONSTANT. + int32_t constant; // If type is AVIF_SAMPLE_TRANSFORM_CONSTANT. // Only 32-bit (bit_depth=2) constants are supported. - uint8_t inputImageItemIndex; // If value is AVIF_SAMPLE_TRANSFORM_INPUT_IMAGE_ITEM_INDEX. 1-based. + uint8_t inputImageItemIndex; // If type is AVIF_SAMPLE_TRANSFORM_INPUT_IMAGE_ITEM_INDEX. 1-based. } avifSampleTransformToken; AVIF_ARRAY_DECLARE(avifSampleTransformExpression, avifSampleTransformToken, tokens); diff --git a/src/read.c b/src/read.c index 889d2f112e..7f36c1c6c1 100644 --- a/src/read.c +++ b/src/read.c @@ -2031,7 +2031,7 @@ static avifBool avifParseToneMappedImageBox(avifGainMapMetadata * metadata, cons #endif // AVIF_ENABLE_EXPERIMENTAL_GAIN_MAP #if defined(AVIF_ENABLE_EXPERIMENTAL_SAMPLE_TRANSFORM) -// bit-depth is assumed to be 2 (32-bit). +// bit_depth is assumed to be 2 (32-bit). static avifResult avifParseSampleTransformTokens(avifROStream * s, avifSampleTransformExpression * expression) { uint8_t tokenCount;