diff options
author | Marco Nelissen <marcone@google.com> | 2012-12-17 16:35:08 -0800 |
---|---|---|
committer | Marco Nelissen <marcone@google.com> | 2012-12-18 15:16:00 -0800 |
commit | 6fc72b01a3b67903b52f1d33b1ad5c960b5365f1 (patch) | |
tree | 329c9f306defb16fb17e085af0596bb9a6be4718 /media/libstagefright/codecs/aacdec/SoftAAC2.cpp | |
parent | 53bc0a2fc54330534330118edd5c393f39eff8ab (diff) | |
download | frameworks_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.cpp | 5 |
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; |