summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--media/libstagefright/OMXCodec.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libstagefright/OMXCodec.cpp b/media/libstagefright/OMXCodec.cpp
index 02993d0..c149379 100644
--- a/media/libstagefright/OMXCodec.cpp
+++ b/media/libstagefright/OMXCodec.cpp
@@ -5330,7 +5330,7 @@ status_t QueryCodec(
// Color format query
OMX_VIDEO_PARAM_PORTFORMATTYPE portFormat;
InitOMXParams(&portFormat);
- portFormat.nPortIndex = !isEncoder ? 1 : 0;
+ portFormat.nPortIndex = !isEncoder ? 0 : 1;
for (portFormat.nIndex = 0;; ++portFormat.nIndex) {
err = omx->getParameter(
node, OMX_IndexParamVideoPortFormat,