Fix comment nits (#507)
diff --git a/apps/avifenc.c b/apps/avifenc.c
index 7f69355..cd16ffe 100644
--- a/apps/avifenc.c
+++ b/apps/avifenc.c
@@ -55,7 +55,7 @@
printf(" -l,--lossless : Set all defaults to encode losslessly, and emit warnings when settings/input don't allow for it\n");
printf(" -d,--depth D : Output depth [8,10,12]. (JPEG/PNG only; For y4m or stdin, depth is retained)\n");
printf(" -y,--yuv FORMAT : Output format [default=444, 422, 420, 400]. (JPEG/PNG only; For y4m or stdin, format is retained)\n");
- printf(" -p,--premultiply : Premultiply color with alpha channel and signal this in the AVIF\n");
+ printf(" -p,--premultiply : Premultiply color by the alpha channel and signal this in the AVIF\n");
printf(" --stdin : Read y4m frames from stdin instead of files; no input filenames allowed, must set before offering output filename\n");
printf(" --cicp,--nclx P/T/M : Set CICP values (nclx colr box) (3 raw numbers, use -r to set range flag)\n");
printf(" P = color primaries\n");
diff --git a/examples/avif_example_encode.c b/examples/avif_example_encode.c
index 7bcc01c..a355799 100644
--- a/examples/avif_example_encode.c
+++ b/examples/avif_example_encode.c
@@ -35,7 +35,7 @@
// * avifImageSetMetadataXMP()
// * yuvRange
// * alphaRange
- // * alphaPremultiply
+ // * alphaPremultiplied
// * transforms (transformFlags, pasp, clap, irot, imir)
if (encodeYUVDirectly) {
diff --git a/include/avif/avif.h b/include/avif/avif.h
index 6a4b48c..4d14165 100644
--- a/include/avif/avif.h
+++ b/include/avif/avif.h
@@ -626,7 +626,7 @@
avifIODestroyFunc destroy;
avifIOReadFunc read;
- // This is reserved for further use - but currently ignored. Set it to a null pointer.
+ // This is reserved for future use - but currently ignored. Set it to a null pointer.
avifIOWriteFunc write;
// If non-zero, this is a hint to internal structures of the max size offered by the content
diff --git a/src/avif.c b/src/avif.c
index 061d8f8..18e6734 100644
--- a/src/avif.c
+++ b/src/avif.c
@@ -362,7 +362,7 @@
rgb->pixels = NULL;
rgb->rowBytes = 0;
rgb->alphaPremultiplied = AVIF_FALSE; // Most expect RGBA output to *not* be premultiplied. Those that do can opt-in by
- // or setting this to match image->alphaPremultiplied or forcing this to true
+ // setting this to match image->alphaPremultiplied or forcing this to true
// after calling avifRGBImageSetDefaults(),
}
diff --git a/src/read.c b/src/read.c
index 57f25b8..f7e8f33 100644
--- a/src/read.c
+++ b/src/read.c
@@ -295,8 +295,8 @@
typedef struct avifTrack
{
uint32_t id;
- uint32_t auxForID; // if non-zero, this item is an auxC plane for Track #{auxForID}
- uint32_t premByID; // if non-zero, this item is premultiplied by Item #{premByID}
+ uint32_t auxForID; // if non-zero, this track is an auxC plane for Track #{auxForID}
+ uint32_t premByID; // if non-zero, this track is premultiplied by Track #{premByID}
uint32_t mediaTimescale;
uint64_t mediaDuration;
uint32_t width;
diff --git a/src/reformat_libyuv.c b/src/reformat_libyuv.c
index d0c9348..7f77c11 100644
--- a/src/reformat_libyuv.c
+++ b/src/reformat_libyuv.c
@@ -443,7 +443,7 @@
// libavif uses byte-order when describing pixel formats, such that the R in RGBA is the lowest address,
// similar to PNG. libyuv orders in word-order, so libavif's RGBA would be referred to in libyuv as ABGR.
- // order of RGB doesn't matter here.
+ // Order of RGB doesn't matter here.
if (rgb->format == AVIF_RGB_FORMAT_RGBA || rgb->format == AVIF_RGB_FORMAT_BGRA) {
if (ARGBAttenuate(rgb->pixels, rgb->rowBytes, rgb->pixels, rgb->rowBytes, rgb->width, rgb->height) != 0) {
return AVIF_RESULT_REFORMAT_FAILED;