Allow SFE_UNSUPPORTED_FORMAT as an error from sf_open().

This commit is contained in:
Erik de Castro Lopo 2005-07-10 08:53:10 +00:00
parent 4cb31999b3
commit 2cccaf5416
3 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,12 @@
2005-07-10 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
* src/caf.c
Add a 'free' chunk to the written file so that the audio data starts at
an offset of 0x1000.
* src/sndfile.c
Allow SFE_UNSUPPORTED_FORMAT as an error from sf_open().
2005-07-09 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
* src/caf.c src/sndfile.c

View File

@ -170,7 +170,7 @@ caf_open (SF_PRIVATE *psf)
/* Lite remove end */
default :
return SFE_UNIMPLEMENTED ;
return SFE_UNSUPPORTED_ENCODING ;
} ;
return error ;

View File

@ -2544,7 +2544,7 @@ psf_open_file (SF_PRIVATE *psf, int mode, SF_INFO *sfinfo)
} ;
if (error)
{ if (error != SF_ERR_SYSTEM)
{ if (error != SF_ERR_SYSTEM && error != SF_ERR_UNSUPPORTED_ENCODING)
{ psf_log_printf (psf, "Parse error : %s\n", sf_error_number (error)) ;
error = SF_ERR_MALFORMED_FILE ;
} ;