mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2024-11-23 09:59:54 +00:00
Allow SFE_UNSUPPORTED_FORMAT as an error from sf_open().
This commit is contained in:
parent
4cb31999b3
commit
2cccaf5416
@ -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
|
||||
|
@ -170,7 +170,7 @@ caf_open (SF_PRIVATE *psf)
|
||||
/* Lite remove end */
|
||||
|
||||
default :
|
||||
return SFE_UNIMPLEMENTED ;
|
||||
return SFE_UNSUPPORTED_ENCODING ;
|
||||
} ;
|
||||
|
||||
return error ;
|
||||
|
@ -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 ;
|
||||
} ;
|
||||
|
Loading…
Reference in New Issue
Block a user