summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/codecs/aacdec/SoftAAC2.cpp
diff options
context:
space:
mode:
authorMarco Nelissen <marcone@google.com>2012-12-17 16:35:08 -0800
committerMarco Nelissen <marcone@google.com>2012-12-18 15:16:00 -0800
commit6fc72b01a3b67903b52f1d33b1ad5c960b5365f1 (patch)
tree329c9f306defb16fb17e085af0596bb9a6be4718 /media/libstagefright/codecs/aacdec/SoftAAC2.cpp
parent53bc0a2fc54330534330118edd5c393f39eff8ab (diff)
downloadframeworks_av-6fc72b01a3b67903b52f1d33b1ad5c960b5365f1.zip
frameworks_av-6fc72b01a3b67903b52f1d33b1ad5c960b5365f1.tar.gz
frameworks_av-6fc72b01a3b67903b52f1d33b1ad5c960b5365f1.tar.bz2
Make codecs reconfigurable
Change-Id: I3dd46cb4401493becbf6152f4dcd5a8f1e9a0b44
Diffstat (limited to 'media/libstagefright/codecs/aacdec/SoftAAC2.cpp')
-rw-r--r--media/libstagefright/codecs/aacdec/SoftAAC2.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/media/libstagefright/codecs/aacdec/SoftAAC2.cpp b/media/libstagefright/codecs/aacdec/SoftAAC2.cpp
index d88813e..a8ab2ac 100644
--- a/media/libstagefright/codecs/aacdec/SoftAAC2.cpp
+++ b/media/libstagefright/codecs/aacdec/SoftAAC2.cpp
@@ -594,6 +594,11 @@ void SoftAAC2::onPortFlushCompleted(OMX_U32 portIndex) {
}
}
+void SoftAAC2::onReset() {
+ aacDecoder_SetParam(mAACDecoder, AAC_TPDEC_CLEAR_BUFFER, 1);
+ mIsFirst = true;
+}
+
void SoftAAC2::onPortEnableCompleted(OMX_U32 portIndex, bool enabled) {
if (portIndex != 1) {
return;