18 lines
608 B
Diff
18 lines
608 B
Diff
--- tiff-4.0.6/libtiff/tif_luv.c 2015-08-29 00:16:22.554966897 +0200
|
|
+++ tiff-4.0.6/libtiff/tif_luv.c 2016-07-12 10:15:05.008194511 +0200
|
|
@@ -1243,6 +1243,14 @@
|
|
assert(sp != NULL);
|
|
assert(td->td_photometric == PHOTOMETRIC_LOGL);
|
|
|
|
+ if( td->td_samplesperpixel != 1 )
|
|
+ {
|
|
+ TIFFErrorExt(tif->tif_clientdata, module,
|
|
+ "Sorry, can not handle LogL image with %s=%d",
|
|
+ "Samples/pixel", td->td_samplesperpixel);
|
|
+ return 0;
|
|
+ }
|
|
+
|
|
/* for some reason, we can't do this in TIFFInitLogL16 */
|
|
if (sp->user_datafmt == SGILOGDATAFMT_UNKNOWN)
|
|
sp->user_datafmt = LogL16GuessDataFmt(td);
|