OSDN Git Service

Fix: Add MediaCodecList capabilities
authorLajos Molnar <lajos@google.com>
Sat, 19 Jul 2014 09:27:41 +0000 (02:27 -0700)
committerLajos Molnar <lajos@google.com>
Sat, 19 Jul 2014 09:28:48 +0000 (02:28 -0700)
fix getting capability index from type

 Bug: 12065651

Change-Id: Id2bc60410a92e17c841a5dd072257bc40ad6236f

media/libstagefright/MediaCodecList.cpp

index d1e9272..8f54343 100644 (file)
@@ -868,6 +868,8 @@ status_t MediaCodecList::getCodecCapabilities(
     if (typeIndex < 0) {
         return -EINVAL;
     }
+    // essentially doing valueFor without the CHECK abort
+    typeIndex = mTypes.valueAt(typeIndex);
 
     OMXClient client;
     status_t err = client.connect();