Library of functions for manipulating TIFF format image files
CentOS Sources
2016-08-02 1ad9335dc0c1325262c62842eda01476243ec821
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
diff -pur tiff-4.0.4/tools/tiffsplit.c tiff-4.0.4_patch/tools/tiffsplit.c
--- tiff-4.0.4/tools/tiffsplit.c    2015-05-28 15:10:26.000000000 +0200
+++ tiff-4.0.4_patch/tools/tiffsplit.c    2016-02-12 19:15:30.532005041 +0100
@@ -179,8 +179,9 @@ tiffcp(TIFF* in, TIFF* out)
             TIFFSetField(out, TIFFTAG_JPEGTABLES, count, table);
         }
     }
+    uint32 count = 0;
         CopyField(TIFFTAG_PHOTOMETRIC, shortv);
-    CopyField(TIFFTAG_PREDICTOR, shortv);
+    CopyField2(TIFFTAG_PREDICTOR, count, shortv);
     CopyField(TIFFTAG_THRESHHOLDING, shortv);
     CopyField(TIFFTAG_FILLORDER, shortv);
     CopyField(TIFFTAG_ORIENTATION, shortv);
@@ -188,7 +189,7 @@ tiffcp(TIFF* in, TIFF* out)
     CopyField(TIFFTAG_MAXSAMPLEVALUE, shortv);
     CopyField(TIFFTAG_XRESOLUTION, floatv);
     CopyField(TIFFTAG_YRESOLUTION, floatv);
-    CopyField(TIFFTAG_GROUP3OPTIONS, longv);
+    CopyField2(TIFFTAG_GROUP3OPTIONS, count, longv);
     CopyField(TIFFTAG_GROUP4OPTIONS, longv);
     CopyField(TIFFTAG_RESOLUTIONUNIT, shortv);
     CopyField(TIFFTAG_PLANARCONFIG, shortv);