ref: 93f645314cceaf9fd5176cb0cbec475a91a843e2
parent: 8b47c3a973b16e44dd6caab6bd944b95728dede1
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Wed Aug 11 16:06:13 EDT 2021
ivf: fix wrong timestamp values
--- a/ivf.c
+++ b/ivf.c
@@ -42,7 +42,7 @@
int x, i;
*o = 0;
- for(i = 0; i < 8; *o |= x<<(i*8), i++){
+ for(i = 0; i < 8; *o |= (uvlong)x<<(i*8), i++){
if((x = Bgetc(b)) < 0){
werrstr("failed to read 8 bytes");
return -1;
@@ -89,7 +89,7 @@
static u64int
ivfns(IVF *ivf, u64int ts)
{
- return ts * ivf->tbnum * 1000000000ULL / ivf->tbdenum;
+ return ts * (ivf->tbnum * 1000000000ULL / ivf->tbdenum);
}
int