summaryrefslogtreecommitdiff
path: root/vpx_util/vpx_util.mk
diff options
context:
space:
mode:
authorYue Chen <yuec@google.com>2019-04-12 15:30:05 -0700
committerYue Chen <yuec@google.com>2019-06-18 10:41:10 -0700
commit11de1b838135307e7c02f7fde82ccd35d9ae4cad (patch)
treecca4e3436dcaaca865dcb1b12073c0f0bad1b65f /vpx_util/vpx_util.mk
parent6ae06316c70a616bcfe18253dd30421c886867dd (diff)
downloadlibvpx-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.mk1
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