X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2Fjpeg%2Flibijg%2Fjquant1.c;fp=src%2Fjpeg%2Flibijg%2Fjquant1.c;h=9a0e28442afac9dd31e5b4faf657bebb078fc8c7;hb=93b600547ab55d2b7b3903c561a06d191d7764d9;hp=2ec9a41ed4c7c5fc81e78485098aaf5d1c9d107a;hpb=5c4c000f5fca8c724844f11df142e28e8e85a350;p=gdcm.git diff --git a/src/jpeg/libijg/jquant1.c b/src/jpeg/libijg/jquant1.c index 2ec9a41e..9a0e2844 100644 --- a/src/jpeg/libijg/jquant1.c +++ b/src/jpeg/libijg/jquant1.c @@ -246,8 +246,6 @@ output_value (j_decompress_ptr cinfo, int ci, int j, int maxj) /* Return j'th output value, where j will range from 0 to maxj */ /* The output values must fall in 0..MAXJSAMPLE in increasing order */ { - cinfo = 0; - ci = 0; /* We always provide values 0 and MAXJSAMPLE for each component; * any additional values are equally spaced between these limits. * (Forcing the upper and lower values to the limits ensures that @@ -262,8 +260,6 @@ largest_input_value (j_decompress_ptr cinfo, int ci, int j, int maxj) /* Return largest input value that should map to j'th output value */ /* Must have largest(j=0) >= 0, and largest(j=maxj) >= MAXJSAMPLE */ { - cinfo = 0; - ci = 0; /* Breakpoints are halfway between values returned by output_value */ return (int) (((INT32) (2*j + 1) * MAXJSAMPLE + maxj) / (2*maxj)); } @@ -748,7 +744,6 @@ start_pass_1_quant (j_decompress_ptr cinfo, boolean is_pre_scan) size_t arraysize; int i; - is_pre_scan = 0; /* Install my colormap. */ cinfo->colormap = cquantize->sv_colormap; cinfo->actual_number_of_colors = cquantize->sv_actual; @@ -802,7 +797,6 @@ start_pass_1_quant (j_decompress_ptr cinfo, boolean is_pre_scan) METHODDEF(void) finish_pass_1_quant (j_decompress_ptr cinfo) { - cinfo = 0; /* no work in 1-pass case */ }