summaryrefslogtreecommitdiff
path: root/rdjpgcom.c
diff options
context:
space:
mode:
authorThomas G. Lane <tgl@netcom.com>1995-03-15 00:00:00 +0000
committerDRC <information@libjpeg-turbo.org>2015-07-29 15:30:19 -0500
commita8b67c4fbbfde9b4b4e03f2dea8f4f0b1900fc33 (patch)
tree38c3f44f85dffa2162d0d80959797cf2b712bf1e /rdjpgcom.c
parent9ba2f5ed3649fb6de83d3c16e4dba1443aaca983 (diff)
The Independent JPEG Group's JPEG software v5b
Diffstat (limited to 'rdjpgcom.c')
-rw-r--r--rdjpgcom.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/rdjpgcom.c b/rdjpgcom.c
index d121dc9..503ccba 100644
--- a/rdjpgcom.c
+++ b/rdjpgcom.c
@@ -1,7 +1,7 @@
/*
* rdjpgcom.c
*
- * Copyright (C) 1994, Thomas G. Lane.
+ * Copyright (C) 1994-1995, Thomas G. Lane.
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
@@ -102,7 +102,7 @@ read_2_bytes (void)
#define M_SOF1 0xC1 /* N indicates which compression process */
#define M_SOF2 0xC2 /* Only SOF0 and SOF1 are now in common use */
#define M_SOF3 0xC3
-#define M_SOF5 0xC5
+#define M_SOF5 0xC5 /* NB: codes C4 and CC are NOT SOF markers */
#define M_SOF6 0xC6
#define M_SOF7 0xC7
#define M_SOF9 0xC9
@@ -262,7 +262,7 @@ process_SOFn (int marker)
unsigned int image_height, image_width;
int data_precision, num_components;
const char * process;
- int ci, c1, c2, c3;
+ int ci;
length = read_2_bytes(); /* usual parameter length count */
@@ -296,9 +296,9 @@ process_SOFn (int marker)
ERREXIT("Bogus SOF marker length");
for (ci = 0; ci < num_components; ci++) {
- c1 = read_1_byte(); /* Component ID code */
- c2 = read_1_byte(); /* H, V sampling factors */
- c3 = read_1_byte(); /* Quant table number */
+ (void) read_1_byte(); /* Component ID code */
+ (void) read_1_byte(); /* H, V sampling factors */
+ (void) read_1_byte(); /* Quantization table number */
}
}