support camera dng LEICA M MONOCHROM (Typ 246)

Patch by @heckflosse
https://github.com/Beep6581/RawTherapee/issues/4785#issuecomment-419713993
This commit is contained in:
Benitoite
2018-09-10 02:33:20 -07:00
committed by GitHub
parent fb17b6be9f
commit 8e678c285a

View File

@@ -1136,7 +1136,7 @@ void CLASS lossless_dng_load_raw()
fseek (ifp, get4(), SEEK_SET);
if (!ljpeg_start (&jh, 0)) break;
jwide = jh.wide;
if (filters) jwide *= jh.clrs;
if (filters || (colors == 1 && jh.clrs > 1)) jwide *= jh.clrs;
jwide /= MIN (is_raw, tiff_samples);
switch (jh.algo) {
case 0xc1: