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>
This commit is contained in:
Guillaume Desmottes 2021-07-09 14:52:59 +02:00 committed by Stéphane Cerveau
parent aa99c5387f
commit 006e0636fd

View file

@ -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;
}