Fix comment nits (#507)
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;