diff options
author | Yue Chen <yuec@google.com> | 2019-04-12 15:30:05 -0700 |
---|---|---|
committer | Yue Chen <yuec@google.com> | 2019-06-18 10:41:10 -0700 |
commit | 11de1b838135307e7c02f7fde82ccd35d9ae4cad (patch) | |
tree | cca4e3436dcaaca865dcb1b12073c0f0bad1b65f /vpx_util/vpx_util.mk | |
parent | 6ae06316c70a616bcfe18253dd30421c886867dd (diff) | |
download | libvpx-11de1b838135307e7c02f7fde82ccd35d9ae4cad.tar libvpx-11de1b838135307e7c02f7fde82ccd35d9ae4cad.tar.gz libvpx-11de1b838135307e7c02f7fde82ccd35d9ae4cad.tar.bz2 libvpx-11de1b838135307e7c02f7fde82ccd35d9ae4cad.zip |
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
Diffstat (limited to 'vpx_util/vpx_util.mk')
-rw-r--r-- | vpx_util/vpx_util.mk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vpx_util/vpx_util.mk b/vpx_util/vpx_util.mk index c97f3f322..116271495 100644 --- a/vpx_util/vpx_util.mk +++ b/vpx_util/vpx_util.mk @@ -15,5 +15,6 @@ UTIL_SRCS-yes += vpx_thread.h UTIL_SRCS-yes += endian_inl.h UTIL_SRCS-yes += vpx_write_yuv_frame.h UTIL_SRCS-yes += vpx_write_yuv_frame.c +UTIL_SRCS-yes += vpx_timestamp.h UTIL_SRCS-$(or $(CONFIG_BITSTREAM_DEBUG),$(CONFIG_MISMATCH_DEBUG)) += vpx_debug_util.h UTIL_SRCS-$(or $(CONFIG_BITSTREAM_DEBUG),$(CONFIG_MISMATCH_DEBUG)) += vpx_debug_util.c |