Initial check in of stagefright software AAC decoder based on PV source code.
diff --git a/media/libstagefright/OMXCodec.cpp b/media/libstagefright/OMXCodec.cpp
index 7c77214..7e9b8ad 100644
--- a/media/libstagefright/OMXCodec.cpp
+++ b/media/libstagefright/OMXCodec.cpp
@@ -18,6 +18,7 @@
#define LOG_TAG "OMXCodec"
#include <utils/Log.h>
+#include "include/AACDecoder.h"
#include "include/ESDS.h"
#include <binder/IServiceManager.h>
@@ -284,6 +285,10 @@
bool success = meta->findCString(kKeyMIMEType, &mime);
CHECK(success);
+ if (!strcasecmp(mime, MEDIA_MIMETYPE_AUDIO_AAC)) {
+ return new AACDecoder(source);
+ }
+
Vector<String8> matchingCodecs;
findMatchingCodecs(
mime, createEncoder, matchComponentName, flags, &matchingCodecs);