summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--media/libstagefright/OMXCodec.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/media/libstagefright/OMXCodec.cpp b/media/libstagefright/OMXCodec.cpp
index efb5f26..91ba093 100644
--- a/media/libstagefright/OMXCodec.cpp
+++ b/media/libstagefright/OMXCodec.cpp
@@ -5432,7 +5432,11 @@ status_t QueryCodec(
// Color format query
OMX_VIDEO_PARAM_PORTFORMATTYPE portFormat;
InitOMXParams(&portFormat);
+#ifdef OMAP_ENHANCEMENT
+ portFormat.nPortIndex = !isEncoder ? 0 : 1;
+#else
portFormat.nPortIndex = !isEncoder ? 1 : 0;
+#endif
for (OMX_U32 index = 0;;index++) {
portFormat.nIndex = index;
err = omx->getParameter(