projects
/
platform
/
upstream
/
gst-omx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14af0f2
)
omxaudioenc: Correctly scale nTickCount by OMX_TICKS_PER_SECOND
author
Sebastian Dröge
<sebastian@centricular.com>
Mon, 12 May 2014 06:56:15 +0000
(08:56 +0200)
committer
Sebastian Dröge
<sebastian@centricular.com>
Mon, 12 May 2014 06:56:15 +0000
(08:56 +0200)
omx/gstomxaudioenc.c
patch
|
blob
|
history
diff --git
a/omx/gstomxaudioenc.c
b/omx/gstomxaudioenc.c
index
b27bd33
..
0eda996
100644
(file)
--- 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;
}