changeset 29:1a7b661841c3

Add exif_fix_data() before creating the EXIF data blob from TIFF tags to ensure that we are as compliant as possible.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 11 May 2017 10:05:55 +0300
parents 76a105267445
children 6fec76de9a8d
files bpgenc.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/bpgenc.c	Wed May 10 16:04:03 2017 +0300
+++ b/bpgenc.c	Thu May 11 10:05:55 2017 +0300
@@ -1343,6 +1343,7 @@
         uint8_t *ex_buf = NULL;
         unsigned int ex_len = 0;
 
+        exif_data_fix(exif);
         exif_data_save_data(exif, &ex_buf, &ex_len);
 
         // Strip off "Exif\x00\x00" from the data