kopia lustrzana https://github.com/Guenael/rtlsdr-wsprd
Fix calculation of number of samples in .c2 files
Fixes output message from: Number of samples: 44977 to: Number of samples: 45000pull/118/head
rodzic
5d05552a0f
commit
4bfc01bba3
|
@ -606,7 +606,7 @@ int32_t readC2file(float *iSamples, float *qSamples, char *filename) {
|
|||
|
||||
/* Get the size of the file */
|
||||
fseek(fd, 0L, SEEK_END);
|
||||
int32_t recsize = ftell(fd) / (2 * sizeof(float)) - 26;
|
||||
int32_t recsize = (ftell(fd) - 26) / (2 * sizeof(float));
|
||||
fseek(fd, 0L, SEEK_SET);
|
||||
|
||||
/* Limit the file/buffer to the max samples */
|
||||
|
|
Ładowanie…
Reference in New Issue