mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 05:01:23 +00:00
audioencoder: also set output buffer DTS
This commit is contained in:
parent
8d9dc05245
commit
b13a722746
1 changed files with 1 additions and 0 deletions
|
@ -798,6 +798,7 @@ gst_audio_encoder_finish_frame (GstAudioEncoder * enc, GstBuffer * buf,
|
|||
GST_BUFFER_TIMESTAMP (buf) = priv->base_ts +
|
||||
gst_util_uint64_scale (priv->samples - ctx->lookahead, GST_SECOND,
|
||||
ctx->info.rate);
|
||||
GST_BUFFER_DTS (buf) = GST_BUFFER_TIMESTAMP (buf);
|
||||
GST_DEBUG_OBJECT (enc, "out samples %d", samples);
|
||||
if (G_LIKELY (samples > 0)) {
|
||||
priv->samples += samples;
|
||||
|
|
Loading…
Reference in a new issue