summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/ACodec.cpp
diff options
context:
space:
mode:
authorSharad Sangle <assangle@codeaurora.org>2015-10-08 23:59:08 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2015-11-04 15:52:05 -0800
commit14896d6fa21cb76e50b1d6a80527f52067c3a99b (patch)
treef5307c24894a64fe121ac69d834792cdfaa9059f /media/libstagefright/ACodec.cpp
parent36a5d0626d308c7dd04a6e0c8aa06a91d2398d3e (diff)
downloadframeworks_av-14896d6fa21cb76e50b1d6a80527f52067c3a99b.zip
frameworks_av-14896d6fa21cb76e50b1d6a80527f52067c3a99b.tar.gz
frameworks_av-14896d6fa21cb76e50b1d6a80527f52067c3a99b.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.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/media/libstagefright/ACodec.cpp b/media/libstagefright/ACodec.cpp
index 3c80d03..f40a3c4 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)