mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 05:31:15 +00:00
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:
parent
aa99c5387f
commit
006e0636fd
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue