summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2014-05-10 22:47:56 +0200
committerSebastian Dröge <sebastian@centricular.com>2014-05-10 22:47:56 +0200
commitcfbf5bf16db213ff2149d61d517b79a192ca16c5 (patch)
tree271319e52a7bf2062dad5196501960d886508bf5
parentbc2990169a8d7ed3df5ae626c8629ad0ed0d5188 (diff)
omxvideodec: Set nTickCount based on the buffer's duration instead of something wrong
-rw-r--r--omx/gstomxvideodec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/omx/gstomxvideodec.c b/omx/gstomxvideodec.c
index 84812d8..256694c 100644
--- a/omx/gstomxvideodec.c
+++ b/omx/gstomxvideodec.c
@@ -2193,7 +2193,7 @@ gst_omx_video_dec_handle_frame (GstVideoDecoder * decoder,
if (duration != GST_CLOCK_TIME_NONE && offset == 0) {
buf->omx_buf->nTickCount =
- gst_util_uint64_scale (buf->omx_buf->nFilledLen, duration, size);
+ gst_util_uint64_scale (duration, OMX_TICKS_PER_SECOND, GST_SECOND);
self->last_upstream_ts += duration;
} else {
buf->omx_buf->nTickCount = 0;