summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlfred E. Heggestad <alfred.heggestad@gmail.com>2018-02-24 19:11:22 +0100
committerAlfred E. Heggestad <alfred.heggestad@gmail.com>2018-02-24 19:11:22 +0100
commit59d29c0254b9240a00ac9236cc8e92c0ae65ec8a (patch)
tree86173746d71a3737e649ce41ce39f4bd56f1adc6 /test
parent73f6d3e5c86244d468499d17321fd9abfc65b9f0 (diff)
vidcodec: change rtp_ts from 32-bit to 64-bit
the extended RTP timestamp from the video encoder should now contain a full extended timestamp, that must never wrap.
Diffstat (limited to 'test')
-rw-r--r--test/mock/mock_vidcodec.c2
-rw-r--r--test/video.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/test/mock/mock_vidcodec.c b/test/mock/mock_vidcodec.c
index 9609e65..9571f73 100644
--- a/test/mock/mock_vidcodec.c
+++ b/test/mock/mock_vidcodec.c
@@ -88,7 +88,7 @@ static int mock_encode(struct videnc_state *ves, bool update,
{
struct mbuf *hdr;
uint8_t payload[2] = {0,0};
- uint32_t rtp_ts;
+ uint64_t rtp_ts;
int err;
(void)update;
diff --git a/test/video.c b/test/video.c
index 09c5e77..c2b829b 100644
--- a/test/video.c
+++ b/test/video.c
@@ -30,8 +30,8 @@ int test_video(void)
ASSERT_EQ( 300000000, video_calc_rtp_timestamp( 100000, 30));
ASSERT_EQ(3000000000, video_calc_rtp_timestamp(1000000, 30));
- ASSERT_EQ(4294965000, video_calc_rtp_timestamp(1431655, 30));
- ASSERT_EQ( 704, video_calc_rtp_timestamp(1431656, 30));
+ ASSERT_EQ(4294965000ULL, video_calc_rtp_timestamp(1431655, 30));
+ ASSERT_EQ(4294968000ULL, video_calc_rtp_timestamp(1431656, 30));
out:
return err;