summaryrefslogtreecommitdiffstats
path: root/media/libstagefright
diff options
context:
space:
mode:
authorMarco Nelissen <marcone@google.com>2016-03-10 14:29:26 -0800
committerThe Android Automerger <android-build@google.com>2016-04-21 19:09:55 -0700
commit94d9e646454f6246bf823b6897bd6aea5f08eda3 (patch)
treeb3b831abb4860c06a436712636dfb35793156c15 /media/libstagefright
parent295c883fe3105b19bcd0f9e07d54c6b589fc5bff (diff)
downloadframeworks_av-94d9e646454f6246bf823b6897bd6aea5f08eda3.zip
frameworks_av-94d9e646454f6246bf823b6897bd6aea5f08eda3.tar.gz
frameworks_av-94d9e646454f6246bf823b6897bd6aea5f08eda3.tar.bz2
Fix initialization of AAC presentation struct
Otherwise the new size checks trip on this. Bug: 27207275 Change-Id: I1f8f01097e3a88ff041b69279a6121be842f1766
Diffstat (limited to 'media/libstagefright')
-rw-r--r--media/libstagefright/ACodec.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/media/libstagefright/ACodec.cpp b/media/libstagefright/ACodec.cpp
index 8d9bd21..6399b79 100644
--- a/media/libstagefright/ACodec.cpp
+++ b/media/libstagefright/ACodec.cpp
@@ -2418,6 +2418,7 @@ status_t ACodec::setupAACCodec(
: OMX_AUDIO_AACStreamFormatMP4FF;
OMX_AUDIO_PARAM_ANDROID_AACPRESENTATIONTYPE presentation;
+ InitOMXParams(&presentation);
presentation.nMaxOutputChannels = maxOutputChannelCount;
presentation.nDrcCut = drc.drcCut;
presentation.nDrcBoost = drc.drcBoost;