aboutsummaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorHyunchang Choi <hyunchang.choi@intel.com>2016-03-23 11:01:59 -0700
committerNick Desaulniers <ndesaulniers@google.com>2016-03-30 13:52:29 -0700
commit3e858c34513e6dfba295d3ac4768ce7ef31ceab7 (patch)
tree101b8582892412c4e3ff60f654296e1d3b390407 /base
parent60f918a7a232576e3f77512ba729e4f9ccf49f25 (diff)
downloadwrs_omxil_core-3e858c34513e6dfba295d3ac4768ce7ef31ceab7.tar.gz
media hardening: OMX::allocateBuffer must return protected buffers as native_handles
Make OMX to use native_handles for media hardening bug: 26781087 Change-Id: Ic5746e70d71520ac7a0e90bd7accf31f11259eb4 Signed-off-by: Hyunchang Choi <hyunchang.choi@intel.com>
Diffstat (limited to 'base')
-rwxr-xr-x[-rw-r--r--]base/src/componentbase.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/base/src/componentbase.cpp b/base/src/componentbase.cpp
index e0f84c3..47d9cb0 100644..100755
--- a/base/src/componentbase.cpp
+++ b/base/src/componentbase.cpp
@@ -874,6 +874,11 @@ OMX_ERRORTYPE ComponentBase::CBaseGetExtensionIndex(
return OMX_ErrorNone;
}
+ if (!strcmp(cParameterName, "OMX.google.android.index.allocateNativeHandle")) {
+ *pIndexType = static_cast<OMX_INDEXTYPE>(OMX_IndexExtAllocateNativeHandle);
+ return OMX_ErrorNone;
+ }
+
return OMX_ErrorUnsupportedIndex;
}