libextractor

GNU libextractor
Log | Files | Refs | Submodules | README | LICENSE

commit 5c13643cea185755258f66e5fc1edbb6008a8b32
parent 54ae80844ab92854223de4fc760e8814011015a4
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun, 14 May 2006 19:16:19 +0000

manits 1094

Diffstat:
Msrc/plugins/exiv2/exiv2extractor.cc | 10+++++++---
1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/plugins/exiv2/exiv2extractor.cc b/src/plugins/exiv2/exiv2extractor.cc @@ -346,9 +346,13 @@ extern "C" { } result = newResult; +#if 0 + /* this can sometimes be wrong (corrupt exiv2 data?). + Either way, we should get the data directly from + the specific file format parser (i.e. jpeg, tiff). */ // Exif Resolution - long xdim = 0; - long ydim = 0; + unsigned long xdim = 0; + unsigned long ydim = 0; md = exifData.findKey(Exiv2::ExifKey("Exif.Photo.PixelXDimension")); if (md != exifData.end()) xdim = md->toLong(); md = exifData.findKey(Exiv2::ExifKey("Exif.Photo.PixelYDimension")); @@ -360,7 +364,7 @@ extern "C" { strdup(os.str().c_str()), result); } - +#endif // White balance // Todo: Implement this for other cameras