diff options
Diffstat (limited to 'exiftran.c')
-rw-r--r-- | exiftran.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -21,6 +21,9 @@ static void dump_exif(FILE *out, ExifData *ed) { const char *title, *value; +#ifdef HAVE_NEW_EXIF + char buffer[256]; +#endif ExifEntry *ee; int tag,i; @@ -33,7 +36,11 @@ static void dump_exif(FILE *out, ExifData *ed) ee = exif_content_get_entry (ed->ifd[i], tag); if (NULL == ee) continue; +#ifdef HAVE_NEW_EXIF + value = exif_entry_get_value(ee, buffer, sizeof(buffer)); +#else value = exif_entry_get_value(ee); +#endif fprintf(out," 0x%04x %-30s %s\n", tag, title, value); } } |