Loading media/libstagefright/codecs/aacdec/SoftAAC2.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -567,6 +567,12 @@ 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; mStreamInfo->sampleRate = 0; } } } Loading Loading
media/libstagefright/codecs/aacdec/SoftAAC2.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -567,6 +567,12 @@ 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; mStreamInfo->sampleRate = 0; } } } Loading