summaryrefslogtreecommitdiff
path: root/camlibs/jl2005c
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2014-02-22 17:19:04 +0000
committerMarcus Meissner <marcus@jet.franken.de>2014-02-22 17:19:04 +0000
commit11fc7216da55b719369e0b223ee9d035d2570788 (patch)
treec8d275e98c0929e4a65c8aa68b995c28bed6bc48 /camlibs/jl2005c
parent9399689e7bf70cff9bc1a539d9e0ded556257fcf (diff)
downloadlibgphoto2-11fc7216da55b719369e0b223ee9d035d2570788.tar.gz
replaced nthos with generic call
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14776 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'camlibs/jl2005c')
-rw-r--r--camlibs/jl2005c/jl2005bcd_decompress.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/camlibs/jl2005c/jl2005bcd_decompress.c b/camlibs/jl2005c/jl2005bcd_decompress.c
index a68f2c7e9..2524738c0 100644
--- a/camlibs/jl2005c/jl2005bcd_decompress.c
+++ b/camlibs/jl2005c/jl2005bcd_decompress.c
@@ -127,7 +127,7 @@ jl2005bcd_decompress (unsigned char *output, unsigned char *input,
thumb = input + 16;
for (i = 0; i < thumbnail_width * thumbnail_height;
i++) {
- thumb[i] = ntohs(thumb[i]);
+ thumb[i] = be16toh(thumb[i]);
out[i * 3 + 0] = (thumb[i] & 0xf800) >> 8;
out[i * 3 + 1] = (thumb[i] & 0x07e0) >> 3;
out[i * 3 + 2] = (thumb[i] & 0x001f) << 3;