# HG changeset patch # User Matti Hamalainen # Date 1494486355 -10800 # Node ID 1a7b661841c354d662e16f616b0b866d2a8000fb # Parent 76a10526744533bc9a03b5b5ecaf6910679a4970 Add exif_fix_data() before creating the EXIF data blob from TIFF tags to ensure that we are as compliant as possible. diff -r 76a105267445 -r 1a7b661841c3 bpgenc.c --- 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