1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-04-30 15:49:41 +02:00

fix bug 238: aiff offset importing ignored (patches libsndfile)

This commit is contained in:
mchinen 2010-10-27 23:35:55 +00:00
parent 2499082baa
commit b87a808468
3 changed files with 17 additions and 1 deletions

View File

@ -114,6 +114,7 @@ Patches: macro-quoting.patch: quote arguments to AC_DEFUN such that
autoreconf works with autorecnf 2.63. Has been accepted upstream
portability.patch: add portability macros / pre-processor to
enable build on non-standard platforms. Not yet accepted upstream.
fix-aiff-offset.patch: fixes ignoring of offset in aiff files (accepted upstream oct. 23 '10)
AM_MAINTAINER_MODE has been added to configure.ac to disable autotools rebuilds
by default
Upstream Version: 1.0.18

View File

@ -0,0 +1,14 @@
Index: libsndfile/src/aiff.c
===================================================================
--- libsndfile/src/aiff.c (revision 10749)
+++ libsndfile/src/aiff.c (working copy)
@@ -519,7 +519,8 @@
psf->datalength -= ssnd_fmt.offset ;
}
else
- { psf_log_printf (psf, " Offset : %u (Should be zero)\n", ssnd_fmt.offset) ;
+ { psf->dataoffset += ssnd_fmt.offset ;
+ psf_log_printf (psf, " Offset : %u (Should be zero)\n", ssnd_fmt.offset) ;
psf_log_printf (psf, " Block Size : %u ???\n", ssnd_fmt.blocksize) ;
} ;

View File

@ -519,7 +519,8 @@ aiff_read_header (SF_PRIVATE *psf, COMM_CHUNK *comm_fmt)
psf->datalength -= ssnd_fmt.offset ;
}
else
{ psf_log_printf (psf, " Offset : %u (Should be zero)\n", ssnd_fmt.offset) ;
{ psf->dataoffset += ssnd_fmt.offset ;
psf_log_printf (psf, " Offset : %u (Should be zero)\n", ssnd_fmt.offset) ;
psf_log_printf (psf, " Block Size : %u ???\n", ssnd_fmt.blocksize) ;
} ;