mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
Set SYNC_FRAME flag on buffers if required
This commit is contained in:
parent
ed98e8cf60
commit
2fe74efc04
1 changed files with 3 additions and 0 deletions
|
@ -1165,6 +1165,9 @@ gst_amc_video_dec_handle_frame (GstVideoDecoder * decoder,
|
|||
memcpy (buf->data, GST_BUFFER_DATA (frame->input_buffer) + offset,
|
||||
buffer_info.size);
|
||||
|
||||
if (GST_VIDEO_CODEC_FRAME_IS_SYNC_POINT (frame))
|
||||
buffer_info.flags |= BUFFER_FLAG_SYNC_FRAME;
|
||||
|
||||
/* Interpolate timestamps if we're passing the buffer
|
||||
* in multiple chunks */
|
||||
if (offset != 0 && duration != GST_CLOCK_TIME_NONE) {
|
||||
|
|
Loading…
Reference in a new issue