mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-05 09:00:54 +00:00
qtmux: Add durations to raw audio buffers from the raw audio adapter in prefill mode
This ensures that a duration can also be calculated and stored for the last buffer at EOS. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3338>
This commit is contained in:
parent
afa15e6284
commit
4dca76396e
1 changed files with 2 additions and 1 deletions
|
@ -2695,7 +2695,8 @@ prefill_raw_audio_prepare_buf_func (GstQTMuxPad * qtpad, GstBuffer * buf,
|
|||
qtpad->sample_size : gst_adapter_available (qtpad->raw_audio_adapter));
|
||||
GST_BUFFER_PTS (buf) = input_timestamp;
|
||||
GST_BUFFER_DTS (buf) = GST_CLOCK_TIME_NONE;
|
||||
GST_BUFFER_DURATION (buf) = GST_CLOCK_TIME_NONE;
|
||||
GST_BUFFER_DURATION (buf) = gst_util_uint64_scale (nsamples, GST_SECOND,
|
||||
atom_trak_get_timescale (qtpad->trak));
|
||||
|
||||
qtpad->raw_audio_adapter_offset += nsamples;
|
||||
|
||||
|
|
Loading…
Reference in a new issue