Don't replace focal_len from Exif by focal_len from Makernotes is Makernotes focal_len is 0
This commit is contained in:
parent
4198ac1083
commit
b3a12b699a
@ -406,7 +406,10 @@ void ImageData::extractInfo ()
|
||||
rtexif::Tag* flt = mnote->getTagP ("LensInfo/FocalLength");
|
||||
|
||||
if (flt) {
|
||||
focal_len = flt->toDouble ();
|
||||
// Don't replace Exif focal_len if Makernotes focal_len is 0
|
||||
if (flt->toDouble() > 0) {
|
||||
focal_len = flt->toDouble ();
|
||||
}
|
||||
} else if ((flt = mnote->getTagP ("FocalLength"))) {
|
||||
rtexif::Tag* flt = mnote->getTag ("FocalLength");
|
||||
focal_len = flt->toDouble ();
|
||||
|
Loading…
x
Reference in New Issue
Block a user