mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-06 16:58:48 +08:00
[exif] altitude_ref fix: not ASCII but BINARY
This commit is contained in:
@@ -279,12 +279,12 @@ int write_exif_jpeg(char *filename, const unsigned char *image_jpg, const unsign
|
||||
entry->format = EXIF_FORMAT_BYTE;
|
||||
entry->components = 1;
|
||||
if (alt_mm < 0) {
|
||||
entry->data[0] = '1'; // Below MSL
|
||||
entry->data[0] = 1; // Below MSL
|
||||
// from now on: go positive only
|
||||
alt_mm = -alt_mm;
|
||||
}
|
||||
else {
|
||||
entry->data[0] = '0'; // Above MSL
|
||||
entry->data[0] = 0; // Above MSL
|
||||
}
|
||||
|
||||
entry = create_tag(exif, EXIF_IFD_GPS, EXIF_TAG_GPS_ALTITUDE, 8);
|
||||
|
||||
Reference in New Issue
Block a user