OSDN Git Service
(root)
/
android-x86
/
frameworks-av.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2096abe
)
Fix: Add MediaCodecList capabilities
author
Lajos Molnar
<lajos@google.com>
Sat, 19 Jul 2014 09:27:41 +0000
(
02:27
-0700)
committer
Lajos 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
patch
|
blob
|
history
diff --git
a/media/libstagefright/MediaCodecList.cpp
b/media/libstagefright/MediaCodecList.cpp
index
d1e9272
..
8f54343
100644
(file)
--- a/
media/libstagefright/MediaCodecList.cpp
+++ b/
media/libstagefright/MediaCodecList.cpp
@@
-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();