diff options
author | Andreas Huber <andih@google.com> | 2012-01-30 16:45:28 -0800 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2012-01-30 16:45:28 -0800 |
commit | 4882355d8cff1d501ba24631eef415e5c9112d8f (patch) | |
tree | 375c47b35ca66e1b55e3a7bcba49cd8106c76260 /media | |
parent | e372593cfb973c8f8bdc46858dece9fcae9e178c (diff) | |
download | frameworks_base-4882355d8cff1d501ba24631eef415e5c9112d8f.zip frameworks_base-4882355d8cff1d501ba24631eef415e5c9112d8f.tar.gz frameworks_base-4882355d8cff1d501ba24631eef415e5c9112d8f.tar.bz2 |
Make sure our aac decoder handles this parameter.
Change-Id: I212ef0c21776b99d0c6662b118ca0ec16b1d3d5e
Diffstat (limited to 'media')
-rw-r--r-- | media/libstagefright/codecs/aacdec/SoftAAC.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/media/libstagefright/codecs/aacdec/SoftAAC.cpp b/media/libstagefright/codecs/aacdec/SoftAAC.cpp index da9d280..ea6c360 100644 --- a/media/libstagefright/codecs/aacdec/SoftAAC.cpp +++ b/media/libstagefright/codecs/aacdec/SoftAAC.cpp @@ -218,6 +218,18 @@ OMX_ERRORTYPE SoftAAC::internalSetParameter( return OMX_ErrorNone; } + case OMX_IndexParamAudioPcm: + { + const OMX_AUDIO_PARAM_PCMMODETYPE *pcmParams = + (OMX_AUDIO_PARAM_PCMMODETYPE *)params; + + if (pcmParams->nPortIndex != 1) { + return OMX_ErrorUndefined; + } + + return OMX_ErrorNone; + } + default: return SimpleSoftOMXComponent::internalSetParameter(index, params); } |