Commit 2061fc0c authored by Andoni Morales Alastruey's avatar Andoni Morales Alastruey Committed by Zaheer Abbas Merali

dv1394: Fix the internal clock even more

The cycleCount register is 13 bits long and the cycleOffset one
is 12 bits long. To read the cycleCount register we need to shift
12 bits and not 13. Fixes #615461
parent 269686fe
......@@ -128,7 +128,7 @@ gst_1394_clock_get_internal_time (GstClock * clock)
result = (((((guint64) _1394clock->cycle_timer_hi) << 32) |
cycle_timer) >> 25) * GST_SECOND;
/* add the microseconds from the cycleCount counter */
result += (((cycle_timer >> 13) & 0x1fff) * 125) * GST_USECOND;
result += (((cycle_timer >> 12) & 0x1fff) * 125) * GST_USECOND;
GST_LOG_OBJECT (clock, "result %" GST_TIME_FORMAT, GST_TIME_ARGS (result));
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment