mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2025-02-17 09:29:53 +00:00
src/wav.c : Set psf->str_flags before calling wav_read_header.
This commit is contained in:
parent
6ed1e67865
commit
949141db55
@ -185,6 +185,8 @@ wav_open (SF_PRIVATE *psf)
|
||||
psf->container_data = wpriv ;
|
||||
|
||||
psf->wavex_ambisonic = SF_AMBISONIC_NONE ;
|
||||
psf->str_flags = SF_STR_ALLOW_START | SF_STR_ALLOW_END ;
|
||||
|
||||
if (psf->mode == SFM_READ || (psf->mode == SFM_RDWR && psf->filelength > 0))
|
||||
{ if ((error = wav_read_header (psf, &blockalign, &framesperblock)))
|
||||
return error ;
|
||||
@ -223,8 +225,6 @@ wav_open (SF_PRIVATE *psf)
|
||||
framesperblock = -1 ; /* Corrected later. */
|
||||
} ;
|
||||
|
||||
psf->str_flags = SF_STR_ALLOW_START | SF_STR_ALLOW_END ;
|
||||
|
||||
/* By default, add the peak chunk to floating point files. Default behaviour
|
||||
** can be switched off using sf_command (SFC_SET_PEAK_CHUNK, SF_FALSE).
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user