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

Commit f547a36c authored by Martin Storsjo's avatar Martin Storsjo
Browse files

avcenc: Set OMX_BUFFERFLAG_EOS on the last output frame

Without this, the caller might hang waiting for more output buffers.

Change-Id: Ief6be00b7600be8498a953e8e88f0582ea8fce85
parent 4b60ac04
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -849,6 +849,9 @@ void SoftAVCEncoder::onQueueFilled(OMX_U32 portIndex) {
        mInputBufferInfoVec.erase(mInputBufferInfoVec.begin());
        outHeader->nTimeStamp = inputBufInfo->mTimeUs;
        outHeader->nFlags |= (inputBufInfo->mFlags | OMX_BUFFERFLAG_ENDOFFRAME);
        if (mSawInputEOS) {
            outHeader->nFlags |= OMX_BUFFERFLAG_EOS;
        }
        outHeader->nFilledLen = dataLength;
        outInfo->mOwnedByUs = false;
        notifyFillBufferDone(outHeader);