diff options
| author | Antonin Descampe <antonin@gmail.com> | 2010-12-05 15:10:10 +0000 |
|---|---|---|
| committer | Antonin Descampe <antonin@gmail.com> | 2010-12-05 15:10:10 +0000 |
| commit | cf39198a9a93455ca65114258197c5fd4f8216e2 (patch) | |
| tree | 9bfa11d6a3ddf034750eea4d90697c155f576199 /codec | |
| parent | 02229c7c2d75ceb067e3c502a79d283425d0d123 (diff) | |
added a definition in getopt.h and an initial value in convert.c
Diffstat (limited to 'codec')
| -rw-r--r-- | codec/compat/getopt.h | 2 | ||||
| -rw-r--r-- | codec/convert.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/codec/compat/getopt.h b/codec/compat/getopt.h index f84fbc06..779fe470 100644 --- a/codec/compat/getopt.h +++ b/codec/compat/getopt.h @@ -24,6 +24,6 @@ extern char *optarg; extern int getopt(int nargc, char *const *nargv, const char *ostr); extern int getopt_long(int argc, char * const argv[], const char *optstring, const struct option *longopts, int totlen); - +extern void reset_options_reading(); #endif /* _GETOPT_H_ */ 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; |
