Exif bloc detection
Brought to you by:
uzadow
Hello,
In the method PLExif::ReadData, the test for "Exif" string
is not correctly set because in a file with two APP1
markers (a file from Adobe PhotoShop 7.0 Mac version),
the first APP1 marker is overriden by a second one.
The test should be after the test for APP1 marker
instead in the first part of the routine when the bloc is
read.
>>>>
void PLExif::ReadData(const jpeg_decompress_struct *
pcinfo)
{
Clear();
jpeg_saved_marker_ptr marker;
for (marker = pcinfo->marker_list; marker != NULL;
marker = marker->next)
{
if (marker->marker == JPEG_APP0 + 1)
// EXIF marker
if (memcmp(marker->data, "Exif\0\0", 6) == 0)
// vérif vrai marker (cas Fichier Adobe
PhotoShop 7 avec 2 APP1)
<<<<
lionel
Logged In: YES
user_id=83423
Can you send me an image file that causes this error so I
can verify what's happening?
Uli