diff options
author | Eric Laurent <elaurent@google.com> | 2013-12-21 01:37:03 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-12-21 01:37:03 +0000 |
commit | e6144d7a558c74e508a5c103cdc462c3cd7cf508 (patch) | |
tree | 33c25fba8c56455027abbc775361f9e2864b9a97 /media/libstagefright/Utils.cpp | |
parent | 864866a6530c37f2f138d78343dc03bf0d2ef9b4 (diff) | |
parent | 42d89e5de5f401c7e81e1961061d07ae490c9d29 (diff) | |
download | frameworks_av-e6144d7a558c74e508a5c103cdc462c3cd7cf508.zip frameworks_av-e6144d7a558c74e508a5c103cdc462c3cd7cf508.tar.gz frameworks_av-e6144d7a558c74e508a5c103cdc462c3cd7cf508.tar.bz2 |
am 42d89e5d: am b904d53f: am 8115f4b2: Merge "stagefright: do not offload LD-AAC decoding"
* commit '42d89e5de5f401c7e81e1961061d07ae490c9d29':
stagefright: do not offload LD-AAC decoding
Diffstat (limited to 'media/libstagefright/Utils.cpp')
-rw-r--r-- | media/libstagefright/Utils.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/media/libstagefright/Utils.cpp b/media/libstagefright/Utils.cpp index 9041c21..216a329 100644 --- a/media/libstagefright/Utils.cpp +++ b/media/libstagefright/Utils.cpp @@ -562,6 +562,17 @@ bool canOffloadStream(const sp<MetaData>& meta, bool hasVideo, return false; } + // check whether it is ELD/LD content -> no offloading + // FIXME: this should depend on audio DSP capabilities. mapMimeToAudioFormat() should use the + // metadata to refine the AAC format and the audio HAL should only list supported profiles. + int32_t aacaot = -1; + if (meta->findInt32(kKeyAACAOT, &aacaot)) { + if (aacaot == 23 || aacaot == 39 ) { + ALOGV("track of type '%s' is ELD/LD content", mime); + return false; + } + } + int32_t srate = -1; if (!meta->findInt32(kKeySampleRate, &srate)) { ALOGV("track of type '%s' does not publish sample rate", mime); |