erikd/libsndfile — pull request #17 by umlaeute (2012-08-22 13:53:27+00:00)
Title: allow matlab files without "samplerate" field to be read

this patchset allows the reading of matlab5 files, that lack a leading 1x1 matrix for the "samplerate" field (see libsndfile-users for reasons)

there's also a fix for the doc/octave.html file (i found it was not fixed in git after all)

finally, the last two patches are an *attempt* to make this work with matlab4 files as well.
i don't think these are ready for prime-time yet: the first patch adds reading support for such matlab4 files, but it doesn't get called since libsndfile fails to detect matlab4 files that do not start with a 1x1 matrix as such.
the last patch adds some more format-guessing code in order to detect such matlab4 files.
unfortunately (since matlab4 misses a proper magic header), this makes some of the unit tests fail, since some SoundDesigner2 files (which lack a proper header magic as well) are wrongly detected as mat4 files.

so: it would be great if you could apply the patch for matlab5 (and the fix for the html-documentation).
with the matlab4 things, feel free to use/improve/dump them.