Handle reconfiguration properly.
Bug 6388957.
Change-Id: I61a86ed6fdad99497535249acda5e4a325911918
diff --git a/media/libstagefright/codecs/aacdec/SoftAAC2.cpp b/media/libstagefright/codecs/aacdec/SoftAAC2.cpp
index aa65a0b..7706bf6 100644
--- a/media/libstagefright/codecs/aacdec/SoftAAC2.cpp
+++ b/media/libstagefright/codecs/aacdec/SoftAAC2.cpp
@@ -375,7 +375,7 @@
* Thus, we could not say for sure whether a stream is
* AAC+/eAAC+ until the first data frame is decoded.
*/
- if (decoderErr == AAC_DEC_OK && mInputBufferCount <= 2) {
+ if (mInputBufferCount <= 2) {
if (mStreamInfo->sampleRate != prevSampleRate) {
// We're going to want to revisit this input buffer, but
// may have already advanced the offset. Undo that if