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:
Leo Liu 2015-05-29 14:50:44 -04:00 committed by Marek Olšák
parent facba49d83
commit 0729c251bb
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}