diff options
author | Mark Thompson <[email protected]> | 2017-03-05 23:18:11 +0000 |
---|---|---|
committer | Christian König <[email protected]> | 2017-03-06 14:05:43 +0100 |
commit | 6398a092131ab0c9cb47f2a6f78ae1d8ba0ea65c (patch) | |
tree | 8f3584265133dcd5655eb7b6947c64f123b7720f /src/gallium/state_trackers | |
parent | 6d95358aacc184b8927ff138e90d5920885365e7 (diff) |
st/omx: Set end-of-frame flag on bitstream output buffers
Since all output buffers are whole frames, this should always be set.
Technically, setting this flag is is optional (see OpenMAX IL section
3.1.2.7.1), but some clients assume that it will be used and
therefore buffer indefinitely thinking that all output buffers are
fragments of the first frame when it is not set.
Signed-off-by: Mark Thompson <[email protected]>
Reviewed-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r-- | src/gallium/state_trackers/omx/vid_enc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/omx/vid_enc.c b/src/gallium/state_trackers/omx/vid_enc.c index b2970a522f3..b58063e6e65 100644 --- a/src/gallium/state_trackers/omx/vid_enc.c +++ b/src/gallium/state_trackers/omx/vid_enc.c @@ -1271,4 +1271,7 @@ static void vid_enc_BufferEncoded(OMX_COMPONENTTYPE *comp, OMX_BUFFERHEADERTYPE* output->nOffset = 0; output->nFilledLen = size; /* mark buffer as full */ + + /* all output buffers contain exactly one frame */ + output->nFlags = OMX_BUFFERFLAG_ENDOFFRAME; } |