summaryrefslogtreecommitdiff
path: root/content/handlers
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2024-02-27 13:23:49 +0000
committerVincent Sanders <vince@kyllikki.org>2024-02-27 13:23:49 +0000
commitcea268ddc6d525187ad9173cc3879ad43e201e2d (patch)
treee8f346f44f2a207e14bdc3b429d3c3048ba19c48 /content/handlers
parentb25ad06a34d5b561c77e8fa8225ca8a5fc4fe000 (diff)
downloadnetsurf-cea268ddc6d525187ad9173cc3879ad43e201e2d.tar.gz
netsurf-cea268ddc6d525187ad9173cc3879ad43e201e2d.tar.bz2
width variable is only required with misconfigured libjpeg
Diffstat (limited to 'content/handlers')
-rw-r--r--content/handlers/image/jpeg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/content/handlers/image/jpeg.c b/content/handlers/image/jpeg.c
index e07fb47bb..93372f15a 100644
--- a/content/handlers/image/jpeg.c
+++ b/content/handlers/image/jpeg.c
@@ -206,7 +206,9 @@ static inline void nsjpeg__decode_rgb(
uint8_t * volatile pixels,
size_t rowstride)
{
+#if RGB_RED != 0 || RGB_GREEN != 1 || RGB_BLUE != 2 || RGB_PIXELSIZE != 4
int width = cinfo->output_width;
+#endif
do {
JSAMPROW scanlines[1] = {