From 0729c251bbff8375ab5d24b80cfc2f8becd6afff Mon Sep 17 00:00:00 2001 From: Leo Liu Date: Fri, 29 May 2015 14:50:44 -0400 Subject: [PATCH] st/omx/enc: flush after eos handling v2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit v2 (chk): reorder the flush Signed-off-by: Leo Liu Signed-off-by: Christian König Acked-by: Alex Deucher --- src/gallium/state_trackers/omx/vid_enc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/state_trackers/omx/vid_enc.c b/src/gallium/state_trackers/omx/vid_enc.c index ae1a98f5be3..bb2c80e7b7f 100644 --- a/src/gallium/state_trackers/omx/vid_enc.c +++ b/src/gallium/state_trackers/omx/vid_enc.c @@ -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); } -- 2.30.2