diff options
author | Tyler Luu <tluu@ti.com> | 2011-10-25 03:09:39 -0500 |
---|---|---|
committer | Ed Heyl <ed@google.com> | 2011-10-25 20:40:21 +0000 |
commit | fac6d88a15b2e4ff329da2c66ba54837361ddc10 (patch) | |
tree | 12911dbde07c7c2b037bd3750bc00784260e2da3 /camera/OMXCameraAdapter/OMXExif.cpp | |
parent | 55fe3ce42d0c5c2619ae0cf2b17180db1c810877 (diff) | |
download | hardware_ti_omap4xxx-fac6d88a15b2e4ff329da2c66ba54837361ddc10.zip hardware_ti_omap4xxx-fac6d88a15b2e4ff329da2c66ba54837361ddc10.tar.gz hardware_ti_omap4xxx-fac6d88a15b2e4ff329da2c66ba54837361ddc10.tar.bz2 |
Fix garbled characters at the end of Exif Make/Model
bug:5481563
Change-Id: Idce652daf7d6164ad84695cc76c358757b5c7b37
Signed-off-by: Tyler Luu <tluu@ti.com>
Diffstat (limited to 'camera/OMXCameraAdapter/OMXExif.cpp')
-rwxr-xr-x | camera/OMXCameraAdapter/OMXExif.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/camera/OMXCameraAdapter/OMXExif.cpp b/camera/OMXCameraAdapter/OMXExif.cpp index 1caeba9..9744cf4 100755 --- a/camera/OMXCameraAdapter/OMXExif.cpp +++ b/camera/OMXCameraAdapter/OMXExif.cpp @@ -297,8 +297,8 @@ status_t OMXCameraAdapter::setupEXIF() EXIF_MODEL_SIZE - 1); exifTags->pModelBuff = ( OMX_S8 * ) ( sharedPtr - sharedBuffer.pSharedBuff ); + exifTags->ulModelBuffSizeBytes = strlen((char*)sharedPtr) + 1; sharedPtr += EXIF_MODEL_SIZE; - exifTags->ulModelBuffSizeBytes = EXIF_MODEL_SIZE; exifTags->eStatusModel = OMX_TI_TagUpdated; } @@ -310,8 +310,8 @@ status_t OMXCameraAdapter::setupEXIF() EXIF_MAKE_SIZE - 1); exifTags->pMakeBuff = ( OMX_S8 * ) ( sharedPtr - sharedBuffer.pSharedBuff ); + exifTags->ulMakeBuffSizeBytes = strlen((char*)sharedPtr) + 1; sharedPtr += EXIF_MAKE_SIZE; - exifTags->ulMakeBuffSizeBytes = EXIF_MAKE_SIZE; exifTags->eStatusMake = OMX_TI_TagUpdated; } |