From: Dan F. <dfa...@us...> - 2009-05-02 06:28:27
|
Update of /cvsroot/libexif/libexif/libexif In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv18356/libexif Modified Files: exif-entry.c Log Message: Create a valid default for EXIF_TAG_COMPONENTS_CONFIGURATION Index: exif-entry.c =================================================================== RCS file: /cvsroot/libexif/libexif/libexif/exif-entry.c,v retrieving revision 1.129 retrieving revision 1.130 diff -u -p -d -r1.129 -r1.130 --- exif-entry.c 31 Jan 2009 23:32:37 -0000 1.129 +++ exif-entry.c 2 May 2009 06:28:20 -0000 1.130 @@ -1675,5 +1675,18 @@ exif_entry_initialize (ExifEntry *e, Exi if (!e->data) break; memcpy (e->data, "0210", 4); break; + + /* UNDEFINED, 4 components, default 1,2,3,0 */ + case EXIF_TAG_COMPONENTS_CONFIGURATION: + e->components = 4; + e->format = EXIF_FORMAT_UNDEFINED; + e->size = exif_format_get_size (e->format) * e->components; + e->data = exif_entry_alloc (e, e->size); + if (!e->data) break; + e->data[0] = 1; + e->data[1] = 2; + e->data[2] = 3; + e->data[3] = 0; + break; } } |