diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.com> | 2021-07-09 14:52:59 +0200 |
---|---|---|
committer | Stéphane Cerveau <scerveau@collabora.com> | 2021-07-09 15:13:36 +0200 |
commit | 006e0636fd09068fb39b66ba5f44234b19570258 (patch) | |
tree | 81a45fde8ae26678271f7eeb3eb5872d1a5ab899 | |
parent | aa99c5387ffb9ef22609e86efb1fecc1799bfcb5 (diff) | |
download | gst-omx-006e0636fd09068fb39b66ba5f44234b19570258.tar.gz |
omxvideodec: allow to start decoder on HEADER buffer
If the headers are sent in their own buffer
it won't have the SYNC_FRAME flag but we still
do want to start decoding rather than dropping it.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-omx/-/merge_requests/49>
-rw-r--r-- | omx/gstomxvideodec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/omx/gstomxvideodec.c b/omx/gstomxvideodec.c index 6b1882d..b1ef29b 100644 --- a/omx/gstomxvideodec.c +++ b/omx/gstomxvideodec.c @@ -2994,7 +2994,7 @@ gst_omx_video_dec_handle_frame (GstVideoDecoder * decoder, } if (!self->started) { - if (!GST_VIDEO_CODEC_FRAME_IS_SYNC_POINT (frame)) { + if (!GST_VIDEO_CODEC_FRAME_IS_SYNC_POINT (frame) && !header) { gst_video_decoder_drop_frame (GST_VIDEO_DECODER (self), frame); return GST_FLOW_OK; } |