diff options
author | Surajit Podder <spodder@codeaurora.org> | 2016-06-09 17:18:53 +0530 |
---|---|---|
committer | Michael Bestas <mikeioannina@cyanogenmod.org> | 2016-11-04 16:02:10 +0200 |
commit | 19bea17bb3f727cffb49406425c5ad5546878028 (patch) | |
tree | ea91c8a4f0ca24dc53075f954112c11445a3cadd | |
parent | ec7f91f858f17325e8813926c34b617eea268ec8 (diff) | |
download | android_hardware_qcom_media-19bea17bb3f727cffb49406425c5ad5546878028.tar.gz android_hardware_qcom_media-19bea17bb3f727cffb49406425c5ad5546878028.tar.bz2 android_hardware_qcom_media-19bea17bb3f727cffb49406425c5ad5546878028.zip |
libstagefrighthw: Remove padding in encoder_nativehandle_buffer_type
Padding is no longer needed as native handle is directly passed without
involving shared memory in framework, and the handle pointer size will
not cause invalid access while passing handle in a 64 bit process.
Change-Id: I184542e7deb816ac2cb97e39a16c5e4fe83c1eb6
-rw-r--r-- | libstagefrighthw/QComOMXMetadata.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libstagefrighthw/QComOMXMetadata.h b/libstagefrighthw/QComOMXMetadata.h index b37a38fc..545ce569 100644 --- a/libstagefrighthw/QComOMXMetadata.h +++ b/libstagefrighthw/QComOMXMetadata.h @@ -26,10 +26,7 @@ namespace android { #ifdef USE_NATIVE_HANDLE_SOURCE typedef struct encoder_nativehandle_buffer_type { MetadataBufferType buffer_type; - union { - buffer_handle_t meta_handle; - uint64_t padding; - }; + buffer_handle_t meta_handle; } encoder_nativehandle_buffer_type; #endif |