# HG changeset patch # User Matti Hamalainen # Date 1494415580 -10800 # Node ID a6e11adda0be98f094930e469b3daf71da5e356e # Parent a6e6f87414ea6a69420d677cd17c7f1208831c0c The format of JPEG EXIF data converted to BPG had an extraneous zero byte at front .. this is probably not intentional. Fixed. Programs reading BPG files may wish to compensate by checking for 0 before the "II" "TIFF" EXIF header. diff -r a6e6f87414ea -r a6e11adda0be bpgenc.c --- a/bpgenc.c Wed May 10 14:10:45 2017 +0300 +++ b/bpgenc.c Wed May 10 14:26:20 2017 +0300 @@ -1534,7 +1534,7 @@ static BPGMetaData *jpeg_get_metadata(jpeg_saved_marker_ptr first_marker) { - static const char app1_exif[] = "Exif"; + static const char app1_exif[6] = "Exif\x00\x00"; static const char app1_xmp[] = "http://ns.adobe.com/xap/1.0/"; static const char app2_iccp[] = "ICC_PROFILE"; jpeg_saved_marker_ptr marker;