mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
amcvideoenc: Set timestamps on header buffers too
https://bugzilla.gnome.org/show_bug.cgi?id=774772
This commit is contained in:
parent
c27091d67f
commit
7817f85759
1 changed files with 3 additions and 0 deletions
|
@ -858,6 +858,9 @@ gst_amc_video_enc_handle_output_frame (GstAmcVideoEnc * self,
|
|||
hdrs = gst_buffer_new_and_alloc (buffer_info->size);
|
||||
gst_buffer_fill (hdrs, 0, buf->data + buffer_info->offset,
|
||||
buffer_info->size);
|
||||
GST_BUFFER_PTS (hdrs) =
|
||||
gst_util_uint64_scale (buffer_info->presentation_time_us,
|
||||
GST_USECOND, 1);
|
||||
|
||||
l = g_list_append (l, hdrs);
|
||||
gst_video_encoder_set_headers (encoder, l);
|
||||
|
|
Loading…
Reference in a new issue