From 6443c22e9061f4118d4e41baf251f00af40d7132 Mon Sep 17 00:00:00 2001 From: Wan-Teh Chang Date: Tue, 1 Aug 2023 13:41:13 -0700 Subject: [PATCH] Update a comment in avifImageYUVAnyToRGBAnySlow() The following comment in avifImageYUVAnyToRGBAnySlow() // Monochrome: ... (identity mode is irrelevant) added in commit ca2c34dd, was written when avifReformatMode had only two values (the default mode and identity mode). Now avifReformatMode has 3 values (or 5 if AVIF_ENABLE_EXPERIMENTAL_YCGCO_R is defined). Instead of enumerating all the non-default modes in the comment, just change "identity mode" to "state->mode". --- src/reformat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reformat.c b/src/reformat.c index 79494e3fe5..8225150d80 100644 --- a/src/reformat.c +++ b/src/reformat.c @@ -763,7 +763,7 @@ static avifResult avifImageYUVAnyToRGBAnySlow(const avifImage * image, G = Y - ((2 * ((kr * (1 - kr) * Cr) + (kb * (1 - kb) * Cb))) / kg); } } else { - // Monochrome: just populate all channels with luma (identity mode is irrelevant) + // Monochrome: just populate all channels with luma (state->mode is irrelevant) R = Y; G = Y; B = Y;