xdf-modules / xdf-Matlab

Matlab code for working with xdf files.
BSD 2-Clause "Simplified" License
11 stars 13 forks source link

Import fails when the streamid is 0 #1

Closed tstenner closed 5 years ago

tstenner commented 5 years ago

The Matlab importer chokes on files when a stream has the ID 0, such as this example file:

streamid = fread(f,1,'uint32')
id = length(streams)+1;
idmap(streamid) = id; %#ok<SPRIX>  <- here
tstenner commented 5 years ago

Fixed in 6449213b6b91d0b472053bb3e57d61255a1a4211. Still, it should be specified in the spec if it should be allowed.