summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/Utils.cpp
diff options
context:
space:
mode:
authorvivek mehta <mvivek@codeaurora.org>2015-07-16 12:56:57 -0700
committerSatish Kamuju <skamuj@codeaurora.org>2015-10-06 17:36:46 +0530
commitbc3028750d3438ebf108298e93f12de461f56430 (patch)
tree20081f78f461ee05b8a1c2cf842387ca3c89f4e5 /media/libstagefright/Utils.cpp
parent9953765019ae2243e98e8e74eee327c9893b93d1 (diff)
downloadframeworks_av-bc3028750d3438ebf108298e93f12de461f56430.zip
frameworks_av-bc3028750d3438ebf108298e93f12de461f56430.tar.gz
frameworks_av-bc3028750d3438ebf108298e93f12de461f56430.tar.bz2
stagefright: Add support for custom size i/p buffer
- handle non default input buffer size - fix issues associated with non-default buffer size Change-Id: Iad31f5c85601983b01e18e130b1c3eecb3988e30
Diffstat (limited to 'media/libstagefright/Utils.cpp')
-rw-r--r--media/libstagefright/Utils.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/media/libstagefright/Utils.cpp b/media/libstagefright/Utils.cpp
index 935fbf7..e7d36dc 100644
--- a/media/libstagefright/Utils.cpp
+++ b/media/libstagefright/Utils.cpp
@@ -834,7 +834,12 @@ bool canOffloadStream(const sp<MetaData>& meta, bool hasVideo,
// Offloading depends on audio DSP capabilities.
int32_t aacaot = -1;
if (meta->findInt32(kKeyAACAOT, &aacaot)) {
- mapAACProfileToAudioFormat(info.format,(OMX_AUDIO_AACPROFILETYPE) aacaot);
+ bool isADTSSupported = false;
+ isADTSSupported = AVUtils::get()->mapAACProfileToAudioFormat(meta, info.format,
+ (OMX_AUDIO_AACPROFILETYPE) aacaot);
+ if (!isADTSSupported) {
+ mapAACProfileToAudioFormat(info.format,(OMX_AUDIO_AACPROFILETYPE) aacaot);
+ }
}
int32_t srate = -1;