cvs: php4 /ext/exif exif.c
| From: | Marcus B�rger | Date: | Wed, 06 Mar 2002 20:24:29 +0000 |
| Subject: | cvs: php4 /ext/exif exif.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-9744@lists.php.net to get a copy of this message | ||
helly Wed Mar 6 15:24:29 2002 EDT
Modified files:
/php4/ext/exif exif.c
Log:
-comments
Index: php4/ext/exif/exif.c
diff -u php4/ext/exif/exif.c:1.50 php4/ext/exif/exif.c:1.51
--- php4/ext/exif/exif.c:1.50 Wed Mar 6 13:11:57 2002
+++ php4/ext/exif/exif.c Wed Mar 6 15:24:29 2002
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: exif.c,v 1.50 2002/03/06 18:11:57 helly Exp $ */
+/* $Id: exif.c,v 1.51 2002/03/06 20:24:29 helly Exp $ */
/* ToDos
*
@@ -859,6 +859,7 @@
void add_assoc_image_info( pval *value, int sub_array, image_info_type *image_info, int
section_index)
{
char buffer[64];
+ int idx=0;
image_info_value *info_value;
if ( image_info->info_list[section_index].count)
@@ -892,7 +893,11 @@
break;
case TAG_FMT_STRING:
- add_assoc_string(tmpi, info_value->name, info_value->value.s, 1);
+ if (section_index==SECTION_COMMENT) {
+ add_index_string(tmpi, idx++, info_value->value.s, 1);
+ } else {
+ add_assoc_string(tmpi, info_value->name, info_value->value.s, 1);
+ }
break;
case TAG_FMT_BYTE:
@@ -1670,7 +1675,7 @@
return (ImageInfo->sections_found&(~FOUND_COMPUTED)) ? TRUE : FALSE;
case M_COM: /* Comment section */
- exif_process_COM(ImageInfo, Data, itemlen);
+ exif_process_COM(ImageInfo, (char *)Data+2, itemlen);
break;
case M_EXIF: