mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
omxaudioenc: Correctly scale nTickCount by OMX_TICKS_PER_SECOND
This commit is contained in:
parent
14af0f266e
commit
527af797d2
1 changed files with 3 additions and 0 deletions
|
@ -1007,6 +1007,9 @@ gst_omx_audio_enc_handle_frame (GstAudioEncoder * encoder, GstBuffer * inbuf)
|
||||||
if (duration != GST_CLOCK_TIME_NONE) {
|
if (duration != GST_CLOCK_TIME_NONE) {
|
||||||
buf->omx_buf->nTickCount =
|
buf->omx_buf->nTickCount =
|
||||||
gst_util_uint64_scale (buf->omx_buf->nFilledLen, duration, size);
|
gst_util_uint64_scale (buf->omx_buf->nFilledLen, duration, size);
|
||||||
|
buf->omx_buf->nTickCount =
|
||||||
|
gst_util_uint64_scale (buf->omx_buf->nTickCount,
|
||||||
|
OMX_TICKS_PER_SECOND, GST_SECOND);
|
||||||
self->last_upstream_ts += duration;
|
self->last_upstream_ts += duration;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue