Commit a95227f
Benjamin Moody
rdrecord: correctly infer length for signal files with a prolog.
If the header file does not specify the record length, it must be
inferred from the size of the signal file (dividing the data length by
the number of samples per frame.)
Previously, this calculation assumed that the file did not contain a
prolog. Correctly calculate the data length by subtracting the prolog
length (byte offset) from the size of the file.1 parent 1e07f0d commit a95227f
2 files changed
+9
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2059 | 2059 | | |
2060 | 2060 | | |
2061 | 2061 | | |
2062 | | - | |
| 2062 | + | |
| 2063 | + | |
2063 | 2064 | | |
2064 | 2065 | | |
2065 | 2066 | | |
| |||
2071 | 2072 | | |
2072 | 2073 | | |
2073 | 2074 | | |
| 2075 | + | |
| 2076 | + | |
2074 | 2077 | | |
2075 | 2078 | | |
2076 | 2079 | | |
| |||
2094 | 2097 | | |
2095 | 2098 | | |
2096 | 2099 | | |
2097 | | - | |
| 2100 | + | |
| 2101 | + | |
| 2102 | + | |
| 2103 | + | |
2098 | 2104 | | |
2099 | 2105 | | |
2100 | 2106 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3453 | 3453 | | |
3454 | 3454 | | |
3455 | 3455 | | |
| 3456 | + | |
3456 | 3457 | | |
3457 | 3458 | | |
3458 | 3459 | | |
| |||
0 commit comments