summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorRicardo Cerqueira <cyanogenmod@cerqueira.org>2013-06-20 15:41:29 +0100
committerRicardo Cerqueira <cyanogenmod@cerqueira.org>2013-06-20 15:48:06 +0100
commit43b58a4fa272983db7ca22ebf592305429b1bba0 (patch)
tree568de443b6e4623c1699cb5becdd04f1d694f0f8 /media
parent1216ed8d00080619bb04c398bb0072945c58511b (diff)
downloadframeworks_av-43b58a4fa272983db7ca22ebf592305429b1bba0.zip
frameworks_av-43b58a4fa272983db7ca22ebf592305429b1bba0.tar.gz
frameworks_av-43b58a4fa272983db7ca22ebf592305429b1bba0.tar.bz2
Revert "libstagefright: Fix incorrectness nPortIndex value for QueryCodec"
This reverts commit 9a814ad626233ff02dd2d393929f32225bc94b68. This is wrong. kPortIndexInput is defined as 0, the original value was correct. Additionally, it breaks android.media.cts.MediaCodecListTest Change-Id: Ib273cde69a4c622daf239bab5d12c5e7d568af2f
Diffstat (limited to 'media')
-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 26cae65..c7b4617 100644
--- a/media/libstagefright/OMXCodec.cpp
+++ b/media/libstagefright/OMXCodec.cpp
@@ -5432,7 +5432,7 @@ status_t QueryCodec(
// Color format query
OMX_VIDEO_PARAM_PORTFORMATTYPE portFormat;
InitOMXParams(&portFormat);
- portFormat.nPortIndex = !isEncoder ? 0 : 1;
+ portFormat.nPortIndex = !isEncoder ? 1 : 0;
for (portFormat.nIndex = 0;; ++portFormat.nIndex) {
err = omx->getParameter(
node, OMX_IndexParamVideoPortFormat,