diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2014-05-12 08:56:15 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2014-05-12 08:56:15 +0200 |
commit | 527af797d2a3336be60a76bc8d525ba77396010e (patch) | |
tree | fdf7eddede34bcad23a6e331a1f1aa860ba0d646 /omx/gstomxaudioenc.c | |
parent | 14af0f266e2b686a61519907b4832ac4c4187073 (diff) | |
download | gst-omx-527af797d2a3336be60a76bc8d525ba77396010e.tar.gz |
omxaudioenc: Correctly scale nTickCount by OMX_TICKS_PER_SECOND
Diffstat (limited to 'omx/gstomxaudioenc.c')
-rw-r--r-- | omx/gstomxaudioenc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/omx/gstomxaudioenc.c b/omx/gstomxaudioenc.c index b27bd33..0eda996 100644 --- a/omx/gstomxaudioenc.c +++ b/omx/gstomxaudioenc.c @@ -1007,6 +1007,9 @@ gst_omx_audio_enc_handle_frame (GstAudioEncoder * encoder, GstBuffer * inbuf) if (duration != GST_CLOCK_TIME_NONE) { buf->omx_buf->nTickCount = 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; } |