summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/OMXCodec.cpp
diff options
context:
space:
mode:
authorAndy Hung <hunga@google.com>2014-05-13 18:37:59 -0700
committerAndy Hung <hunga@google.com>2014-05-14 20:28:49 -0700
commitf87e30fe71752dc431d8e8d5682c38271c03265a (patch)
tree1b326dde24b25962ee7a337fe723bef42ff76525 /media/libstagefright/OMXCodec.cpp
parent609b815a3131d22da38b2f452faa9f89daad4039 (diff)
downloadframeworks_av-f87e30fe71752dc431d8e8d5682c38271c03265a.zip
frameworks_av-f87e30fe71752dc431d8e8d5682c38271c03265a.tar.gz
frameworks_av-f87e30fe71752dc431d8e8d5682c38271c03265a.tar.bz2
Send 64 bit OMX codec handling to 32 bit MediaServer
This is a temporary fix for 64 bit OMX handling until 64 bit codecs are more robust. Bug: 13938273 Change-Id: Ifc79e360f9606f6c909b859d322b7dd5d416b26b Signed-off-by: Andy Hung <hunga@google.com>
Diffstat (limited to 'media/libstagefright/OMXCodec.cpp')
-rw-r--r--media/libstagefright/OMXCodec.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/media/libstagefright/OMXCodec.cpp b/media/libstagefright/OMXCodec.cpp
index f248861..c028dbf 100644
--- a/media/libstagefright/OMXCodec.cpp
+++ b/media/libstagefright/OMXCodec.cpp
@@ -18,6 +18,11 @@
//#define LOG_NDEBUG 0
#define LOG_TAG "OMXCodec"
+
+#ifdef __LP64__
+#define OMX_ANDROID_COMPILE_AS_32BIT_ON_64BIT_PLATFORMS
+#endif
+
#include <utils/Log.h>
#include "include/AACEncoder.h"
@@ -130,6 +135,7 @@ private:
template<class T>
static void InitOMXParams(T *params) {
+ COMPILE_TIME_ASSERT_FUNCTION_SCOPE(sizeof(OMX_PTR) == 4); // check OMX_PTR is 4 bytes.
params->nSize = sizeof(T);
params->nVersion.s.nVersionMajor = 1;
params->nVersion.s.nVersionMinor = 0;