Issue with Pentax *istD

Hi,

The sample file at http://www.rawsamples.ch/raws/pentax/star_d/RAW_PENTAX_STARISTD_SRGB.PEF does not decode correctly in version 0.18.2, but does work in 0.17.2.

The following patch solves the problem:

--- LibRaw-0.18.2/internal/dcraw_common.cpp 2017-05-03 12:45:04.000000000 +0200
+++ LibRaw-0.18.2-fix/internal/dcraw_common.cpp 2017-05-03 14:49:56.000000000 +0200
@@ -14520,10 +14520,8 @@
simple_coeff(0);
#endif
}
- else if(!strncmp(make,"Pentax",6))
+ else if(!strncmp(make,"Pentax",6) && !strncmp(model,"K-1",3))
{
- if(!strncmp(model,"K-1",3))
- {
top_margin = 18;
height = raw_height - top_margin;
if(raw_width == 7392)
@@ -14531,7 +14529,6 @@
left_margin = 6;
width = 7376;
}
- }
}
else if (!strncmp(make,"Canon",5) && tiff_bps == 15) {
switch (width) {

Thanks,
Erik

Forums: