Loading media/libstagefright/codecs/xaacdec/SoftXAAC.cpp +5 −2 Original line number Diff line number Diff line Loading @@ -689,7 +689,6 @@ void SoftXAAC::onQueueFilled(OMX_U32 /* portIndex */) { notify(OMX_EventError, OMX_ErrorUndefined, err_code, NULL); return; } mIsCodecConfigFlushRequired = true; } if (!mSampFreq || !mNumChannels) { Loading @@ -713,10 +712,14 @@ void SoftXAAC::onQueueFilled(OMX_U32 /* portIndex */) { signed int bytesConsumed = 0; int errorCode = 0; if (mIsCodecInitialized) { mIsCodecConfigFlushRequired = true; errorCode = decodeXAACStream(inBuffer, inBufferLength, &bytesConsumed, &numOutBytes); } else { } else if (!mIsCodecConfigFlushRequired) { ALOGW("Assumption that first frame after header initializes decoder failed!"); mSignalledError = true; notify(OMX_EventError, OMX_ErrorUndefined, -1, NULL); return; } inHeader->nFilledLen -= bytesConsumed; inHeader->nOffset += bytesConsumed; Loading Loading
media/libstagefright/codecs/xaacdec/SoftXAAC.cpp +5 −2 Original line number Diff line number Diff line Loading @@ -689,7 +689,6 @@ void SoftXAAC::onQueueFilled(OMX_U32 /* portIndex */) { notify(OMX_EventError, OMX_ErrorUndefined, err_code, NULL); return; } mIsCodecConfigFlushRequired = true; } if (!mSampFreq || !mNumChannels) { Loading @@ -713,10 +712,14 @@ void SoftXAAC::onQueueFilled(OMX_U32 /* portIndex */) { signed int bytesConsumed = 0; int errorCode = 0; if (mIsCodecInitialized) { mIsCodecConfigFlushRequired = true; errorCode = decodeXAACStream(inBuffer, inBufferLength, &bytesConsumed, &numOutBytes); } else { } else if (!mIsCodecConfigFlushRequired) { ALOGW("Assumption that first frame after header initializes decoder failed!"); mSignalledError = true; notify(OMX_EventError, OMX_ErrorUndefined, -1, NULL); return; } inHeader->nFilledLen -= bytesConsumed; inHeader->nOffset += bytesConsumed; Loading