OSDN Git Service
(root)
/
android-x86
/
frameworks-av.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9c52da
)
Make sure our aac decoder handles this parameter.
author
Andreas Huber
<andih@google.com>
Tue, 31 Jan 2012 00:45:28 +0000
(16:45 -0800)
committer
Andreas Huber
<andih@google.com>
Tue, 31 Jan 2012 00:45:28 +0000
(16:45 -0800)
Change-Id: I212ef0c21776b99d0c6662b118ca0ec16b1d3d5e
media/libstagefright/codecs/aacdec/SoftAAC.cpp
patch
|
blob
|
history
diff --git
a/media/libstagefright/codecs/aacdec/SoftAAC.cpp
b/media/libstagefright/codecs/aacdec/SoftAAC.cpp
index
da9d280
..
ea6c360
100644
(file)
--- 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);
}