From: Jan P. <pa...@pi...> - 2006-09-06 13:26:06
|
Jef, this message is printed by the CC macro. It checks whether 1st & 2nd arguments are equal. apparently entry->components is 4, but n is only 1. Hope this helps.. -- Jan > case MNOTE_CANON_TAG_FOCAL_LENGTH: > CF (entry->format, EXIF_FORMAT_SHORT, val, maxlen); > n = exif_get_short (data, entry->order) / 2; > if (t >= n) return NULL; > CC (entry->components, n, val, maxlen); > vs = exif_get_short (entry->data + 2 + t * 2, entry->order); > snprintf (buf, sizeof (buf), "0x%04x", vs); > strncpy (val, buf, maxlen - strlen (val)); > break; > > But when I run the exif commandline utility, an error is reported for > the new tag: > > Focal type |Invalid number of components (4, expected 1). > > What am I doing wrong here? > > [1] http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/Canon.html |