John Cupitt ef6d8f5979 make test for matlab files more specific
Previously vips just called Mat_Open() to test if a file was a Matlab
save file, but this is rather unreliable. For example, some JPEG files
can crash libmatio, and it can incorrectly think that at least some JP2
files are Matlab save files.

Instead, look for "MATLAB 5.0" at the start of the file. This is really too
specific, the first 116 bytes of a Matlab save file are freeform text,
but in practice all Matlab writers use the first few bytes to record the
file type.

See https://github.com/jcupitt/libvips/issues/385
2016-02-16 09:53:04 +00:00
..
2016-01-26 12:26:21 +00:00
2016-01-26 12:26:21 +00:00
2016-02-11 18:56:55 +00:00
2016-01-26 13:37:56 +00:00
2015-11-12 09:15:31 +00:00
2016-01-24 13:21:53 +00:00
2014-11-17 10:32:40 +00:00
2016-01-24 13:21:53 +00:00
2016-02-12 10:53:04 +00:00
2016-02-08 16:37:47 +00:00
2016-01-26 16:41:03 +00:00
2016-01-26 16:41:03 +00:00
2016-02-07 17:41:39 +00:00
2013-12-30 16:26:56 +00:00
2009-08-16 15:00:08 +00:00
2014-12-20 10:28:30 +00:00
2015-05-18 02:44:34 -04:00