Commit 68856682 authored by luis_pereira87's avatar luis_pereira87

Fix AssertFatal in replay_node when file size is not a multiple of block size

parent 62bc47c8
...@@ -200,7 +200,10 @@ int main(int argc, char *argv[]) { ...@@ -200,7 +200,10 @@ int main(int argc, char *argv[]) {
int bufSize=100000; int bufSize=100000;
void *buff=malloc(bufSize); void *buff=malloc(bufSize);
uint64_t timestamp=0; uint64_t timestamp=0;
const int blockSize=1000; const int blockSize=1920;
// If fileSize is not multiple of blockSize*4 then discard remaining samples
fileSize = (fileSize/(blockSize<<2))*(blockSize<<2);
while (1) { while (1) {
//Rewind the file to loop on the samples //Rewind the file to loop on the samples
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment