Author: post
Date: 2012-09-30 22:08:27 +0200 (Sun, 30 Sep 2012)
New Revision: 465

Modified:
   RawSpeed/NefDecoder.cpp
Log:
Don't assume endianness of metadata.

Modified: RawSpeed/NefDecoder.cpp
===================================================================
--- RawSpeed/NefDecoder.cpp     2012-09-30 20:07:22 UTC (rev 464)
+++ RawSpeed/NefDecoder.cpp     2012-09-30 20:08:27 UTC (rev 465)
@@ -114,9 +114,8 @@
   try {
     NikonDecompressor decompressor(mFile, mRaw);
 
-    // Nikon is JPEG (Big Endian) byte order
     ByteStream* metastream;
-    if (getHostEndianness() == big)
+    if (getHostEndianness() == data[0]->endian)
       metastream = new ByteStream(meta->getData(), meta->count);
     else
       metastream = new ByteStreamSwap(meta->getData(), meta->count);


_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit

Reply via email to