From: Leo Liu Date: Fri, 29 May 2015 18:50:44 +0000 (-0400) Subject: st/omx/enc: flush after eos handling v2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0729c251bbff8375ab5d24b80cfc2f8becd6afff;p=mesa.git st/omx/enc: flush after eos handling v2 v2 (chk): reorder the flush Signed-off-by: Leo Liu Signed-off-by: Christian König Acked-by: Alex Deucher --- 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); }