omxaudioenc: Correctly scale nTickCount by OMX_TICKS_PER_SECOND
authorSebastian Dröge <sebastian@centricular.com>
Mon, 12 May 2014 06:56:15 +0000 (08:56 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 12 May 2014 06:56:15 +0000 (08:56 +0200)
omx/gstomxaudioenc.c

index b27bd33..0eda996 100644 (file)
@@ -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;
     }