diff --git a/src/tiffimage_int.cpp b/src/tiffimage_int.cpp index 8007a3b3..90e5d390 100644 --- a/src/tiffimage_int.cpp +++ b/src/tiffimage_int.cpp @@ -807,8 +807,8 @@ namespace Exiv2 { }; extern const ArrayCfg sony2010eCfg = { - sony2010eId, // Group for the elements - bigEndian, // Big endian + sony2010eId, // Group for the elements + invalidByteOrder, // inherit from file. Usually littleEndian ttUnsignedByte, // Type for array entry and size element sonyTagDecipher, // (uint16_t, const byte*, uint32_t, TiffComponent* const); false, // No size element diff --git a/test/data/test_issue_1464.exv b/test/data/test_issue_1464.exv new file mode 100644 index 00000000..92389917 Binary files /dev/null and b/test/data/test_issue_1464.exv differ diff --git a/tests/bugfixes/github/test_issue_1464.py b/tests/bugfixes/github/test_issue_1464.py new file mode 100644 index 00000000..36425fa8 --- /dev/null +++ b/tests/bugfixes/github/test_issue_1464.py @@ -0,0 +1,18 @@ +# -*- coding: utf-8 -*- + +from system_tests import CaseMeta, CopyTmpFiles, path +@CopyTmpFiles("$data_path/test_issue_1464.exv") + +class test_issue_1464Test(metaclass=CaseMeta): + + filename = path("$tmp_path/test_issue_1464.exv") + commands = [ "$exiv2 -K Exif.Sony2010e.WB_RGBLevels $filename" + , "$exiv2 -M\"set Exif.Sony2010e.WB_RGBLevels 9 1 1\" $filename" + , "$exiv2 -K Exif.Sony2010e.WB_RGBLevels $filename" + ] + stdout = ["Exif.Sony2010e.WB_RGBLevels Short 3 598 256 442\n" + ,"" + ,"Exif.Sony2010e.WB_RGBLevels Short 3 9 1 1\n" + ] + stderr = [""]*len(commands) + retval = [ 0]*len(commands)