summaryrefslogtreecommitdiff
path: root/applications/codec
diff options
context:
space:
mode:
authorMathieu Malaterre <mathieu.malaterre@gmail.com>2011-12-21 10:24:59 +0000
committerMathieu Malaterre <mathieu.malaterre@gmail.com>2011-12-21 10:24:59 +0000
commitc9ae2a5fbcdf8eb2325fe7fdcffbc64879e5c105 (patch)
tree12ce272034c72bbdda93b98e7a8634f8172f9294 /applications/codec
parent51ae8b7926b235ada3ba173d486f2536764527d9 (diff)
hopefully fix a warning on VS2008 compiler
Diffstat (limited to 'applications/codec')
-rw-r--r--applications/codec/convert.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/applications/codec/convert.c b/applications/codec/convert.c
index fce65d00..73ed9d09 100644
--- a/applications/codec/convert.c
+++ b/applications/codec/convert.c
@@ -1851,7 +1851,7 @@ int imagetopnm(opj_image_t * image, const char *outfile)
FILE *fdest = NULL;
const char *tmp = outfile;
char *destname;
-
+ alpha = NULL;
if((prec = image->comps[0].prec) > 16)
{
fprintf(stderr,"%s:%d:imagetopnm\n\tprecision %d is larger than 16"
@@ -1913,7 +1913,7 @@ int imagetopnm(opj_image_t * image, const char *outfile)
{
fprintf(fdest, "P6\n# OpenJPEG-%s\n%d %d\n%d\n",
opj_version(), wr, hr, max);
- alpha = NULL; adjustA = 0;
+ adjustA = 0;
}
adjustR = (image->comps[0].sgnd ? 1 << (image->comps[0].prec - 1) : 0);