diff options
author | Sharad Sangle <assangle@codeaurora.org> | 2015-10-08 23:59:08 +0530 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2015-10-13 01:26:05 -0700 |
commit | 6d1bfe5b18dbb745da83540c6011e1c557996f5c (patch) | |
tree | ba522b5f757a4c2ab56ce0379ffe2061ed5b2025 /media/libstagefright/ACodec.cpp | |
parent | 0138890a0993b66d04b95ce1f94a9800b2c666b6 (diff) | |
download | frameworks_av-6d1bfe5b18dbb745da83540c6011e1c557996f5c.zip frameworks_av-6d1bfe5b18dbb745da83540c6011e1c557996f5c.tar.gz frameworks_av-6d1bfe5b18dbb745da83540c6011e1c557996f5c.tar.bz2 |
audio: use QTI flac decoder based on flag
While setting up the component for flac, current design
is if encoder then don't use QTI flac component otherwise
use QTI flac component, so if QTI flac is not being used
then this might be wrong. So enhance the design to use
QTI flac component only when it is enabled, otherwise use
default flac component
Change-Id: I57454841611885ae7cdf75896f8297ef8132292e
CRs-Fixed: 916650
Diffstat (limited to 'media/libstagefright/ACodec.cpp')
-rw-r--r-- | media/libstagefright/ACodec.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/media/libstagefright/ACodec.cpp b/media/libstagefright/ACodec.cpp index a132637..18d221b 100644 --- a/media/libstagefright/ACodec.cpp +++ b/media/libstagefright/ACodec.cpp @@ -2073,7 +2073,11 @@ status_t ACodec::configureCodec( } err = setupG711Codec(encoder, sampleRate, numChannels); } +#ifdef QTI_FLAC_DECODER } else if (!strcasecmp(mime, MEDIA_MIMETYPE_AUDIO_FLAC) && encoder) { +#else + } else if (!strcasecmp(mime, MEDIA_MIMETYPE_AUDIO_FLAC)) { +#endif int32_t numChannels = 0, sampleRate = 0, compressionLevel = -1; if (encoder && (!msg->findInt32("channel-count", &numChannels) |