st/omx/enc: flush after eos handling v2
v2 (chk): reorder the flush Signed-off-by: Leo Liu <leo.liu@amd.com> Signed-off-by: Christian König <christian.koenig@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
facba49d83
commit
0729c251bb
|
@ -1127,6 +1127,7 @@ static OMX_ERRORTYPE vid_enc_EncodeFrame(omx_base_PortType *port, OMX_BUFFERHEAD
|
|||
if (buf->nFlags & OMX_BUFFERFLAG_EOS) {
|
||||
buf->nFilledLen = buf->nAllocLen;
|
||||
enc_ClearBframes(port, inp);
|
||||
priv->codec->flush(priv->codec);
|
||||
}
|
||||
return base_port_SendBufferFunction(port, buf);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue