From 006e0636fd09068fb39b66ba5f44234b19570258 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Fri, 9 Jul 2021 14:52:59 +0200 Subject: 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: --- omx/gstomxvideodec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.1