summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.com>2021-07-09 15:14:15 +0200
committerStéphane Cerveau <scerveau@collabora.com>2021-07-09 15:15:12 +0200
commit503db0f1af09cbccb43007a123a219f9b8c68c23 (patch)
tree5221f28be8c94ec593dc05b27c07fce1a904d57f
parent006e0636fd09068fb39b66ba5f44234b19570258 (diff)
downloadgst-omx-503db0f1af09cbccb43007a123a219f9b8c68c23.tar.gz
omxvideodec: fix OMX flags on header buffer
The header (SPS/PPS) buffer should have the CODECONFIG flag Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-omx/-/merge_requests/49>
-rw-r--r--omx/gstomxvideodec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/omx/gstomxvideodec.c b/omx/gstomxvideodec.c
index b1ef29b..917ce8a 100644
--- a/omx/gstomxvideodec.c
+++ b/omx/gstomxvideodec.c
@@ -3125,7 +3125,6 @@ gst_omx_video_dec_handle_frame (GstVideoDecoder * decoder,
}
buf->omx_buf->nFlags |= OMX_BUFFERFLAG_CODECCONFIG;
- buf->omx_buf->nFlags |= OMX_BUFFERFLAG_ENDOFFRAME;
if (GST_CLOCK_TIME_IS_VALID (timestamp))
GST_OMX_SET_TICKS (buf->omx_buf->nTimeStamp,
@@ -3205,6 +3204,9 @@ gst_omx_video_dec_handle_frame (GstVideoDecoder * decoder,
if (first_ouput_buffer && GST_VIDEO_CODEC_FRAME_IS_SYNC_POINT (frame))
buf->omx_buf->nFlags |= OMX_BUFFERFLAG_SYNCFRAME;
+ if (header)
+ buf->omx_buf->nFlags |= OMX_BUFFERFLAG_CODECCONFIG;
+
/* TODO: Set flags
* - OMX_BUFFERFLAG_DECODEONLY for buffers that are outside
* the segment