omxvideodec: Make sure that the first frame we pass to OpenMAX is a sync frame
This commit is contained in:
parent
e1f94660f7
commit
2b580837f5
@ -2200,6 +2200,11 @@ gst_omx_video_dec_handle_frame (GstVideoDecoder * decoder,
|
||||
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;
|
||||
duration = frame->duration;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user