Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 07195f6d authored by Chong Zhang's avatar Chong Zhang Committed by Android (Google) Code Review
Browse files

Merge "SoftAVCEnc: encode EOS frame is size is non-zero" into mnc-dev

parents 0a62c194 cbe6ac2f
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1188,7 +1188,10 @@ void SoftAVC::onQueueFilled(OMX_U32 portIndex) {
        BufferInfo *outputBufferInfo = *outQueue.begin();
        OMX_BUFFERHEADERTYPE *outputBufferHeader = outputBufferInfo->mHeader;

        if (inputBufferHeader->nFlags & OMX_BUFFERFLAG_EOS) {
        if (inputBufferHeader->nFlags & OMX_BUFFERFLAG_EOS &&
                inputBufferHeader->nFilledLen == 0) {
            mSawInputEOS = true;

            inQueue.erase(inQueue.begin());
            inputBufferInfo->mOwnedByUs = false;
            notifyEmptyBufferDone(inputBufferHeader);