mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
omxvideodec: Set nTickCount based on the buffer's duration instead of something wrong
This commit is contained in:
parent
bc2990169a
commit
cfbf5bf16d
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue