Commit 034fed34 authored by Jan-Gerrit Richter's avatar Jan-Gerrit Richter

bugfix: daffv15_write did not calculate the length correctly

for example, if the efflength was 256 and i1 is 1
i2 needs to be at 256 and not 255
parent 3ff2d055
......@@ -902,8 +902,7 @@ for i=1:props.dataset.numrecords
% Back to Matlab indices (+1)
i1 = recordDesc{i}.effOffset(c) + 1;
% i2 = i1 + recordDesc{i}.effLength(c) - 1;
i2 = recordDesc{i}.effLength(c) - 1;
i2 = i1 + recordDesc{i}.effLength(c) - 1;
% Write down the filter coefficients
switch props.quantization
......
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