forked from Exiv2/exiv2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Canon decoder for lens detection (Exiv2#2057)
The `Canon RF 24-105 F4-7.1 IS STM` lens is reported as using an `Exif.CanonCs.MaxAperture` of `F7.3` instead of `F7.1`. As a result, the translation of `Exif.CanonCs.LensType` is missing. Fix updates the `CanonEV()` decode function to provide the correct value.
- Loading branch information
1 parent
315ae6d
commit 8d36bcc
Showing
5 changed files
with
517 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
from system_tests import CaseMeta, path | ||
|
||
class AddLens_Canon_RF_24_105mm_F4_7_1_IS_STM(metaclass=CaseMeta): | ||
""" | ||
Regression test for the bug described in: | ||
https://github.com/Exiv2/exiv2/issues/2057 | ||
""" | ||
url = "https://github.com/Exiv2/exiv2/issues/2057" | ||
|
||
filename = path("$data_path/issue_2057_poc1.exv") | ||
commands = ["$exiv2 --Print kyyvt --key Exif.CanonCs.LensType $filename"] | ||
stderr = [""] | ||
stdout = ["""Exif.CanonCs.LensType Short 61182 Canon RF 24-105mm F4-7.1 IS STM | ||
"""] | ||
retval = [0] |