]> Creatis software - gdcm.git/commitdiff
BUG: Who blamed vs7.1 it actually caught a big fat bug...
authormalaterre <malaterre>
Tue, 24 Jan 2006 23:14:53 +0000 (23:14 +0000)
committermalaterre <malaterre>
Tue, 24 Jan 2006 23:14:53 +0000 (23:14 +0000)
src/gdcmjpeg/jdpred.c

index abe003e17eccf0085a2e53ce63fb502ae4a4d9da..1e6f183cfbda3f3ce2b315fc87e2cd951b7b4b1b 100644 (file)
@@ -175,12 +175,13 @@ jpeg_undifference6(j_decompress_ptr cinfo, int comp_index,
     Rb = GETJSAMPLE(prev_row[0]);
     Ra = (diff_buf[0] + PREDICTOR2) & 0xFFFF;
     undiff_buf[0] = Ra;
-    min = max = undiff_buf[0];
+    temp = min = max = undiff_buf[0];
 
     for (xindex = 1; xindex < width; xindex++) {
       Rc = Rb;
       Rb = GETJSAMPLE(prev_row[xindex]);
       Ra = (diff_buf[xindex] + PREDICTOR6) & 0xFFFF;
+      temp = Ra;
       min = temp < min ? temp : min;
       max = temp > max ? temp : max;
     }