ref: 04383393e47142f801eda822277e12b9214bc63a
parent: 1d49040369c3e553f13ffb1690c4a27a58796abd
author: Debargha Mukherjee <debargha@google.com>
date: Thu Dec 5 14:14:41 EST 2019
Add missing typecast and re-enable timestamp test BUG=webm:701 Change-Id: I1d8a6e263fddb9e4cc6265a313011a18d18bbf9e
--- a/test/timestamp_test.cc
+++ b/test/timestamp_test.cc
@@ -100,6 +100,8 @@
VP8_INSTANTIATE_TEST_CASE(TimestampTest,
::testing::Values(::libvpx_test::kTwoPassGood));
+VP8_INSTANTIATE_TEST_CASE(TimestampTestVp9Only,
+ ::testing::Values(::libvpx_test::kTwoPassGood));
VP9_INSTANTIATE_TEST_CASE(TimestampTest,
::testing::Values(::libvpx_test::kTwoPassGood));
VP9_INSTANTIATE_TEST_CASE(TimestampTestVp9Only,
--- a/vp8/vp8_cx_iface.c
+++ b/vp8/vp8_cx_iface.c
@@ -912,8 +912,8 @@
dst_time_stamp =
pts_val * ctx->timestamp_ratio.num / ctx->timestamp_ratio.den;
- dst_end_time_stamp = (pts_val + duration) * ctx->timestamp_ratio.num /
- ctx->timestamp_ratio.den;
+ dst_end_time_stamp = (pts_val + (int64_t)duration) *
+ ctx->timestamp_ratio.num / ctx->timestamp_ratio.den;
if (img != NULL) {
res = image2yuvconfig(img, &sd);