summaryrefslogtreecommitdiff
path: root/codec/convert.c
diff options
context:
space:
mode:
Diffstat (limited to 'codec/convert.c')
-rw-r--r--codec/convert.c4
1 files changed, 2 insertions, 2 deletions
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;