X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=codec%2Fconvert.c;h=de08e4c72cde2a273c13c86b72e0365fdbbca2e3;hb=cf39198a9a93455ca65114258197c5fd4f8216e2;hp=aaa22d536be86d1cec67819aab8c3e6e7ee46f36;hpb=1c2ed5cc33df3cfb6f61657b930a5c300cf6993f;p=openjpeg.git diff --git a/codec/convert.c b/codec/convert.c index aaa22d53..de08e4c7 100644 --- a/codec/convert.c +++ b/codec/convert.c @@ -2373,8 +2373,8 @@ int imagetopng(opj_image_t * image, const char *write_idf) unsigned char *row_buf, *d; int has_alpha, width, height, nr_comp, color_type; int adjustR, adjustG, adjustB, x, y, fails, is16, force16; - int opj_prec, prec, ushift, dshift; - unsigned short mask; + int opj_prec, prec, ushift, dshift; + unsigned short mask = 0xffff; png_color_8 sig_bit; is16 = force16 = ushift = dshift = 0; fails = 1;