Loading media/libstagefright/codecs/aacdec/SoftAAC.cpp +4 −2 Original line number Original line Diff line number Diff line Loading @@ -316,7 +316,7 @@ void SoftAAC::onQueueFilled(OMX_U32 portIndex) { * Thus, we could not say for sure whether a stream is * Thus, we could not say for sure whether a stream is * AAC+/eAAC+ until the first data frame is decoded. * AAC+/eAAC+ until the first data frame is decoded. */ */ if (mInputBufferCount <= 2) { if (decoderErr == MP4AUDEC_SUCCESS && mInputBufferCount <= 2) { LOGV("audio/extended audio object type: %d + %d", LOGV("audio/extended audio object type: %d + %d", mConfig->audioObjectType, mConfig->extendedAudioObjectType); mConfig->audioObjectType, mConfig->extendedAudioObjectType); LOGV("aac+ upsampling factor: %d desired channels: %d", LOGV("aac+ upsampling factor: %d desired channels: %d", Loading Loading @@ -410,9 +410,11 @@ void SoftAAC::onQueueFilled(OMX_U32 portIndex) { notifyFillBufferDone(outHeader); notifyFillBufferDone(outHeader); outHeader = NULL; outHeader = NULL; if (decoderErr == MP4AUDEC_SUCCESS) { ++mInputBufferCount; ++mInputBufferCount; } } } } } void SoftAAC::onPortFlushCompleted(OMX_U32 portIndex) { void SoftAAC::onPortFlushCompleted(OMX_U32 portIndex) { if (portIndex == 0) { if (portIndex == 0) { Loading Loading
media/libstagefright/codecs/aacdec/SoftAAC.cpp +4 −2 Original line number Original line Diff line number Diff line Loading @@ -316,7 +316,7 @@ void SoftAAC::onQueueFilled(OMX_U32 portIndex) { * Thus, we could not say for sure whether a stream is * Thus, we could not say for sure whether a stream is * AAC+/eAAC+ until the first data frame is decoded. * AAC+/eAAC+ until the first data frame is decoded. */ */ if (mInputBufferCount <= 2) { if (decoderErr == MP4AUDEC_SUCCESS && mInputBufferCount <= 2) { LOGV("audio/extended audio object type: %d + %d", LOGV("audio/extended audio object type: %d + %d", mConfig->audioObjectType, mConfig->extendedAudioObjectType); mConfig->audioObjectType, mConfig->extendedAudioObjectType); LOGV("aac+ upsampling factor: %d desired channels: %d", LOGV("aac+ upsampling factor: %d desired channels: %d", Loading Loading @@ -410,9 +410,11 @@ void SoftAAC::onQueueFilled(OMX_U32 portIndex) { notifyFillBufferDone(outHeader); notifyFillBufferDone(outHeader); outHeader = NULL; outHeader = NULL; if (decoderErr == MP4AUDEC_SUCCESS) { ++mInputBufferCount; ++mInputBufferCount; } } } } } void SoftAAC::onPortFlushCompleted(OMX_U32 portIndex) { void SoftAAC::onPortFlushCompleted(OMX_U32 portIndex) { if (portIndex == 0) { if (portIndex == 0) { Loading