From: Marco Nelissen Date: Fri, 6 Jun 2014 21:36:23 +0000 (-0700) Subject: Remove unneeded code X-Git-Tag: android-x86-6.0-r1~2027^2 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=ed83915060af3eaaf62feef2eb2eec1e7d431891;p=android-x86%2Fframeworks-av.git Remove unneeded code Change-Id: I33c7424f1858e9f3f7f7ab5fb46db09c2714e02e --- diff --git a/media/libstagefright/codecs/aacdec/SoftAAC2.cpp b/media/libstagefright/codecs/aacdec/SoftAAC2.cpp index edb7448d2f..64bf2b6671 100644 --- a/media/libstagefright/codecs/aacdec/SoftAAC2.cpp +++ b/media/libstagefright/codecs/aacdec/SoftAAC2.cpp @@ -842,12 +842,6 @@ void SoftAAC2::onPortFlushCompleted(OMX_U32 portIndex) { // depend on fragments from the last one decoded. // drain all existing data drainDecoder(); - // force decoder loop to drop the first decoded buffer by resetting these state variables, - // but only if initialization has already happened. - if (mInputBufferCount != 0) { - mInputBufferCount = 1; - mOutputBufferCount = -1; - } } else { while (outputDelayRingBufferSamplesAvailable() > 0) { int32_t ns = outputDelayRingBufferGetSamples(0,