projects
/
openjpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f45e38
)
[trunk] Remove some easy warnings
author
Mathieu Malaterre
<mathieu.malaterre@gmail.com>
Thu, 6 Mar 2014 16:29:03 +0000
(16:29 +0000)
committer
Mathieu Malaterre
<mathieu.malaterre@gmail.com>
Thu, 6 Mar 2014 16:29:03 +0000
(16:29 +0000)
src/bin/jp2/convert.c
patch
|
blob
|
history
diff --git
a/src/bin/jp2/convert.c
b/src/bin/jp2/convert.c
index a49ea8384fa085811b2c829aec179ea0c5769e01..f99cd169b5f9f34c02fdbbac8b8b67bd6cf10930 100644
(file)
--- a/
src/bin/jp2/convert.c
+++ b/
src/bin/jp2/convert.c
@@
-1431,7
+1431,7
@@
static inline int clamp( const int value, const int prec, const int sgnd )
{
if (prec <= 8) return CLAMP(value,0,255);
else if (prec <= 16) return CLAMP(value,0,65535);
- else return
CLAMP(value,0,4294967295);
+ else return
value; /*CLAMP(value,0,4294967295);*/
}
}
@@
-3012,11
+3012,11
@@
static opj_image_t* rawtoimage_common(const char *filename, opj_cparameters_t *p
}
if( big_endian )
{
- value = (unsigned short)(
temp1 << 8
+ temp2);
+ value = (unsigned short)(
(temp1 << 8)
+ temp2);
}
else
{
- value = (unsigned short)(
temp2 << 8
+ temp1);
+ value = (unsigned short)(
(temp2 << 8)
+ temp1);
}
image->comps[compno].data[i] = raw_cp->rawSigned?(short)value:value;
}