mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
omxvideodec: Make sure that the first frame we pass to OpenMAX is a sync frame
This commit is contained in:
parent
e1f94660f7
commit
2b580837f5
1 changed files with 5 additions and 0 deletions
|
@ -2200,6 +2200,11 @@ gst_omx_video_dec_handle_frame (GstVideoDecoder * decoder,
|
||||||
return GST_FLOW_EOS;
|
return GST_FLOW_EOS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!self->started && !GST_VIDEO_CODEC_FRAME_IS_SYNC_POINT (frame)) {
|
||||||
|
gst_video_decoder_drop_frame (GST_VIDEO_DECODER (self), frame);
|
||||||
|
return GST_FLOW_OK;
|
||||||
|
}
|
||||||
|
|
||||||
timestamp = frame->pts;
|
timestamp = frame->pts;
|
||||||
duration = frame->duration;
|
duration = frame->duration;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue