diff options
author | Chong Zhang <chz@google.com> | 2014-09-30 22:02:34 -0700 |
---|---|---|
committer | Chong Zhang <chz@google.com> | 2014-10-01 10:43:12 -0700 |
commit | 2965f4eb7dceaf1173f0e2d93c11c28293aeead7 (patch) | |
tree | 7e69324afe5b3b2713b1f5c10bc3d71468197131 /media/libstagefright/codecs/aacdec/SoftAAC2.cpp | |
parent | 80ec934ae7d4e3a78af87554fdb77a58f6386ba0 (diff) | |
download | frameworks_av-2965f4eb7dceaf1173f0e2d93c11c28293aeead7.zip frameworks_av-2965f4eb7dceaf1173f0e2d93c11c28293aeead7.tar.gz frameworks_av-2965f4eb7dceaf1173f0e2d93c11c28293aeead7.tar.bz2 |
add AAC audio decoder params for PCM limiter enable
Bug: 17470065
Change-Id: Ib67aa1c50e3b6c24c4b12b0f31a996cc6874abd1
Diffstat (limited to 'media/libstagefright/codecs/aacdec/SoftAAC2.cpp')
-rw-r--r-- | media/libstagefright/codecs/aacdec/SoftAAC2.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/media/libstagefright/codecs/aacdec/SoftAAC2.cpp b/media/libstagefright/codecs/aacdec/SoftAAC2.cpp index fb27dca..287fcc8 100644 --- a/media/libstagefright/codecs/aacdec/SoftAAC2.cpp +++ b/media/libstagefright/codecs/aacdec/SoftAAC2.cpp @@ -368,6 +368,10 @@ OMX_ERRORTYPE SoftAAC2::internalSetParameter( aacPresParams->nEncodedTargetLevel); updateDrcWrapper = true; } + if (aacPresParams->nPCMLimiterEnable >= 0) { + aacDecoder_SetParam(mAACDecoder, AAC_PCM_LIMITER_ENABLE, + (aacPresParams->nPCMLimiterEnable != 0)); + } if (updateDrcWrapper) { mDrcWrap.update(); } |