Minor cleanup.

This commit is contained in:
Erik de Castro Lopo 2012-08-23 22:25:04 +10:00
parent 007fc5d29d
commit 542b5493db
2 changed files with 6 additions and 2 deletions

View File

@ -3,6 +3,10 @@
* doc/octave.html
Fix link to octave.sourceforge.net. Thanks to IOhannes m zmoelnig.
* src/mat5.c
Allow reading of mat5 files without a specified sample rate (default to
44.1kHz). Thanks to IOhannes m zmoelnig.
2012-08-19 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
* src/paf.c

View File

@ -319,10 +319,10 @@ mat5_read_header (SF_PRIVATE *psf)
return SFE_MAT5_NO_BLOCK ;
psf_binheader_readf (psf, "44", &rows, &cols) ;
psf_log_printf (psf, " Rows : %X Cols : %d\n", rows, cols) ;
psf_log_printf (psf, " Rows : %d Cols : %d\n", rows, cols) ;
if (rows != 1 || cols != 1)
{ if (0 == psf->sf.samplerate)
{ if (psf->sf.samplerate == 0)
psf->sf.samplerate = 44100 ;
have_samplerate = 0 ;
}