diff options
author | Caio Schnepper <caioschnepper@gmail.com> | 2015-05-01 23:55:43 -0300 |
---|---|---|
committer | Caio Schnepper <caioschnepper@gmail.com> | 2015-05-28 18:29:17 -0300 |
commit | ecc3d13410f7821659f7cc1ef806dfb9378853a3 (patch) | |
tree | 6861390f0f9cdda0429aaa2b0252137a675eb85b /camera/exynos_exif.c | |
parent | e3591e7a641044f28598dfe628c4e0d46d3d7435 (diff) | |
download | device_samsung_galaxys2-common-ecc3d13410f7821659f7cc1ef806dfb9378853a3.zip device_samsung_galaxys2-common-ecc3d13410f7821659f7cc1ef806dfb9378853a3.tar.gz device_samsung_galaxys2-common-ecc3d13410f7821659f7cc1ef806dfb9378853a3.tar.bz2 |
galaxys2: initial L bringup
Change-Id: Ia356da8437917be3355eba59c1df3943bb33f905
Diffstat (limited to 'camera/exynos_exif.c')
-rw-r--r-- | camera/exynos_exif.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/camera/exynos_exif.c b/camera/exynos_exif.c index 8887e5b..b9f57ca 100644 --- a/camera/exynos_exif.c +++ b/camera/exynos_exif.c @@ -372,7 +372,7 @@ bv_ioctl: } int exynos_exif_write_data(void *exif_data, unsigned short tag, - unsigned short type, unsigned int count, int *offset, void *start, + unsigned short type, unsigned int count, unsigned int *offset, void *start, void *data, int length) { unsigned char *pointer; @@ -421,12 +421,12 @@ int exynos_exif_create(struct exynos_camera *exynos_camera, unsigned char user_comment_code[] = { 0x41, 0x53, 0x43, 0x49, 0x49, 0x0, 0x0, 0x0 }; unsigned char exif_ascii_prefix[] = { 0x41, 0x53, 0x43, 0x49, 0x49, 0x0, 0x0, 0x0 }; - camera_memory_t *exif_data_memory; + camera_memory_t *exif_data_memory = NULL; void *exif_data; int exif_data_size; int exif_size; - void *exif_ifd_data_start, *exif_ifd_start, *exif_ifd_gps, *exif_ifd_thumb; + void *exif_ifd_data_start, *exif_ifd_start, *exif_ifd_thumb, *exif_ifd_gps = NULL; void *exif_thumb_data; unsigned int exif_thumb_size; @@ -644,7 +644,7 @@ int exynos_exif_create(struct exynos_camera *exynos_camera, count = exynos_exif_write_data(pointer, EXIF_TAG_GPS_IFD_POINTER, EXIF_TYPE_LONG, 1, NULL, NULL, &offset, sizeof(offset)); - pointer = exif_ifd_start + offset; + pointer = (unsigned char *) exif_ifd_start + offset; if (exif_attributes->gps_processing_method[0] == 0) value = NUM_0TH_IFD_GPS - 1; |