Merge pull request #1469 from Exiv2/fix_1464_sony2010e

Fix 1464 sony2010e (0.27->maintenance)
This commit is contained in:
Robin Mills 2021-02-11 11:41:15 +00:00 committed by GitHub
commit 443944d1de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 2 deletions

View File

@ -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

Binary file not shown.

View File

@ -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)