mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2024-11-23 09:59:54 +00:00
Fix problems with WAV files containing large chunks after the 'data' chunk.
This commit is contained in:
parent
5b3240595f
commit
e3111a2694
@ -1,3 +1,9 @@
|
||||
2004-03-19 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
|
||||
|
||||
* src/common.c
|
||||
Fix problems with WAV files containing large chunks after the 'data'
|
||||
chunk. Thanks to Koen Tanghe for providing a sample file.
|
||||
|
||||
2004-03-17 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
|
||||
|
||||
* configure.ac
|
||||
|
@ -3,7 +3,7 @@
|
||||
dnl Require autoconf version
|
||||
AC_PREREQ(2.53)
|
||||
|
||||
AC_INIT(libsndfile,1.0.9pre1,erikd@mega-nerd.com)
|
||||
AC_INIT(libsndfile,1.0.9pre2,erikd@mega-nerd.com)
|
||||
AC_CONFIG_SRCDIR([src/sndfile.c])
|
||||
AC_CANONICAL_TARGET([])
|
||||
AM_INIT_AUTOMAKE($PACKAGE_NAME,$PACKAGE_VERSION)
|
||||
|
@ -770,9 +770,14 @@ header_seek (SF_PRIVATE *psf, sf_count_t position, int whence)
|
||||
break ;
|
||||
|
||||
case SEEK_CUR :
|
||||
if (psf->headindex + position < 0 || psf->headindex >= SIGNED_SIZEOF (psf->header))
|
||||
if (psf->headindex + position < 0)
|
||||
break ;
|
||||
|
||||
if (psf->headindex >= SIGNED_SIZEOF (psf->header))
|
||||
{ psf_fseek (psf, position, whence) ;
|
||||
return ;
|
||||
} ;
|
||||
|
||||
if (psf->headindex + position <= psf->headend)
|
||||
{ psf->headindex += position ;
|
||||
break ;
|
||||
|
Loading…
Reference in New Issue
Block a user