From: malaterre Date: Tue, 24 Jan 2006 23:14:53 +0000 (+0000) Subject: BUG: Who blamed vs7.1 it actually caught a big fat bug... X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=6f85922ff76cf9d44d9c084ce5001e1b7a54672f;p=gdcm.git BUG: Who blamed vs7.1 it actually caught a big fat bug... --- diff --git a/src/gdcmjpeg/jdpred.c b/src/gdcmjpeg/jdpred.c index abe003e1..1e6f183c 100644 --- a/src/gdcmjpeg/jdpred.c +++ b/src/gdcmjpeg/jdpred.c @@ -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; }