ref: 869a8b94cbe9b216d41ac11a570f7a7ba22d0d30
parent: a1fa64c53babf67c3cfcbabe0729324a40c7b4a4
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Mon Feb 8 06:09:23 EST 2021
matroska: fix wrong timestamp used
--- a/matroska.c
+++ b/matroska.c
@@ -205,7 +205,6 @@
e.tracknum = -1;
e.comp.algo = -1;
duration = 0;
- ts = 0;
skipdata = trackdump == Nodump;
el.id = 0;
for(isebml = 0; left != 0;){
@@ -403,10 +402,10 @@
}
}
- if(te.fpacket(&out, &te, packets, npackets, ts) != 0)
- goto err;
/* ns timestamp */
ts = (timestamp + (s16int)(buf[0]<<8 | buf[1])) * timestampscale - te.codec.delay;
+ if(te.fpacket(&out, &te, packets, npackets, ts) != 0)
+ goto err;
continue;
}
}else{