Commit Graph

5 Commits

Author SHA1 Message Date
Debargha Mukherjee
65e0663f06 Merge Timestamp TestVpxRollover tests for Vp8/Vp9
BUG=webm:701

Change-Id: Id0b928db3cbb6263d136d7b9eb8d9453b3c63824
2019-12-06 15:52:25 -08:00
Debargha Mukherjee
04383393e4 Add missing typecast and re-enable timestamp test
BUG=webm:701

Change-Id: I1d8a6e263fddb9e4cc6265a313011a18d18bbf9e
2019-12-05 19:15:53 -08:00
James Zern
d310bc12b7 timestamp_test: enable TestMicrosecondTimebase
this doesn't cause any overflow issues after:
11de1b838 Fix timestamp overflow issues

BUG=webm:701,webm:1614

Change-Id: I7e1cbfa4264d1661eb9a5baa2b2111a0899360f2
2019-06-27 15:21:23 -07:00
Yue Chen
11de1b8381 Fix timestamp overflow issues
- Save the initial user-specified timestamp and rebase all further
timestamps by this value. This makes libvpx internal timestamps to
always start from zero, regardless of the user's timestamps.
- Calculate reduced timestamp conversion ratio and use it to convert
user's timestamps to libvpx internal timestamps and back. The effect
of this is that integer overflow due to multiplication doesn't
happen for a much longer time.

BUG=webm:701

Change-Id: Ic6f5eacd9a7c21b95707d31ee2da77dc8ac7dccf
2019-06-18 10:41:10 -07:00
Frank Galligan
65e5ba89b3 Add a test to test rollover of int64 in encoder interface.
The current libvpx encoder interface can potentially rollover an int64_t
value used to calculate the current timestamp. If the timebase was set
to microseconds and first timestamp was 0, then the rollover would
occur in about 10.675 days.

BUG=webm:701

Change-Id: I8d5aab46f8dcf250c1d4d43d5f3d27363c19cd54
2019-04-04 17:53:42 +00:00