Fixed problem with unproperly written multibyte files. Now output files will
be written using the same byte order flag as in the input image. See http://bugzilla.remotesensing.org/show_bug.cgi?id=574 for details.
This commit is contained in:
parent
58499f6a0e
commit
f23487170c
@ -1,4 +1,4 @@
|
|||||||
/* $Header: /cvs/maptools/cvsroot/libtiff/tools/tiffsplit.c,v 1.5 2004-02-26 10:14:19 dron Exp $ */
|
/* $Id: tiffsplit.c,v 1.6 2004-05-20 19:20:52 dron Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1992-1997 Sam Leffler
|
* Copyright (c) 1992-1997 Sam Leffler
|
||||||
@ -63,7 +63,7 @@ main(int argc, char* argv[])
|
|||||||
newfilename();
|
newfilename();
|
||||||
strcpy(path, fname);
|
strcpy(path, fname);
|
||||||
strcat(path, ".tif");
|
strcat(path, ".tif");
|
||||||
out = TIFFOpen(path, "w");
|
out = TIFFOpen(path, TIFFIsBigEndian(in)?"wb":"wl");
|
||||||
if (out == NULL)
|
if (out == NULL)
|
||||||
return (-2);
|
return (-2);
|
||||||
if (!tiffcp(in, out))
|
if (!tiffcp(in, out))
|
||||||
|
Loading…
Reference in New Issue
Block a user