This commit is contained in:
parent
b2e21a78e0
commit
de246e2e97
43
libsndfile-example-fix.diff
Normal file
43
libsndfile-example-fix.diff
Normal file
@ -0,0 +1,43 @@
|
||||
--- examples/sfprocess.c-dist 2008-02-07 14:39:26.000000000 +0100
|
||||
+++ examples/sfprocess.c 2008-02-07 14:39:54.000000000 +0100
|
||||
@@ -69,6 +69,7 @@ main (void)
|
||||
** sfinfo.format = SF_FORMAT_RAW | SF_FORMAT_PCM_16 ;
|
||||
** sfinfo.channels = 2 ;
|
||||
*/
|
||||
+ memset(&sfinfo, 0, sizeof(sfinfo));
|
||||
if (! (infile = sf_open (infilename, SFM_READ, &sfinfo)))
|
||||
{ /* Open failed so print an error message. */
|
||||
printf ("Not able to open input file %s.\n", infilename) ;
|
||||
--- examples/sndfile-convert.c-dist 2008-02-07 14:39:26.000000000 +0100
|
||||
+++ examples/sndfile-convert.c 2008-02-07 14:41:12.000000000 +0100
|
||||
@@ -242,6 +242,7 @@ main (int argc, char * argv [])
|
||||
exit (1) ;
|
||||
} ;
|
||||
|
||||
+ memset(&sfinfo, 0, sizeof(sfinfo));
|
||||
if ((infile = sf_open (infilename, SFM_READ, &sfinfo)) == NULL)
|
||||
{ printf ("Not able to open input file %s.\n", infilename) ;
|
||||
puts (sf_strerror (NULL)) ;
|
||||
--- examples/cooledit-fixer.c-dist 2008-02-07 14:39:26.000000000 +0100
|
||||
+++ examples/cooledit-fixer.c 2008-02-07 14:40:36.000000000 +0100
|
||||
@@ -48,7 +48,9 @@ main (int argc, char *argv [])
|
||||
usage_exit (argv [0]) ;
|
||||
|
||||
for (k = 1 ; k < argc ; k++)
|
||||
- { if ((sndfile = sf_open (argv [k], SFM_READ, &sfinfo)) == NULL)
|
||||
+ {
|
||||
+ memset(&sfinfo, 0, sizeof(sfinfo));
|
||||
+ if ((sndfile = sf_open (argv [k], SFM_READ, &sfinfo)) == NULL)
|
||||
{ /*-printf ("Failed to open : %s\n", argv [k]) ;-*/
|
||||
continue ;
|
||||
} ;
|
||||
--- examples/generate.c-dist 2008-02-07 14:39:26.000000000 +0100
|
||||
+++ examples/generate.c 2008-02-07 14:40:53.000000000 +0100
|
||||
@@ -84,6 +84,7 @@ encode_file (const char *infilename, con
|
||||
k = 16 - strlen (outfilename) ;
|
||||
PUT_DOTS (k) ;
|
||||
|
||||
+ memset(&sfinfo, 0, sizeof(sfinfo));
|
||||
if (! (infile = sf_open (infilename, SFM_READ, &sfinfo)))
|
||||
{ printf ("Error : could not open file : %s\n", infilename) ;
|
||||
puts (sf_strerror (NULL)) ;
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue May 6 15:10:55 CEST 2008 - tiwai@suse.de
|
||||
|
||||
- fix missing initializations in demo programs (bnc#351128)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 15 17:39:20 CEST 2008 - schwab@suse.de
|
||||
|
||||
|
@ -14,7 +14,7 @@ Name: libsndfile
|
||||
BuildRequires: alsa-devel flac-devel gcc-c++ pkgconfig sqlite-devel
|
||||
Summary: A Library to Handle Various Audio File Formats
|
||||
Version: 1.0.17
|
||||
Release: 128
|
||||
Release: 134
|
||||
License: LGPL v2.1 or later
|
||||
Group: System/Libraries
|
||||
Obsoletes: libsnd
|
||||
@ -24,6 +24,7 @@ Patch: libsndfile-flac-1.1.4-fix.diff
|
||||
Patch1: libsndfile-ac.diff
|
||||
Patch2: libsndfile-1.0.17-flac-buffer-overflow.patch
|
||||
Patch3: libsndfile-1.0.17-ac.diff
|
||||
Patch4: libsndfile-example-fix.diff
|
||||
Url: http://www.mega-nerd.com/libsndfile/
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
@ -95,6 +96,7 @@ Authors:
|
||||
%patch1
|
||||
%patch2
|
||||
%patch3
|
||||
%patch4
|
||||
|
||||
%build
|
||||
%define warn_flags -W -Wall -Wstrict-prototypes -Wpointer-arith -Wno-unused-parameter
|
||||
@ -150,6 +152,8 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%{_datadir}/octave/site/m/sndfile_save.m
|
||||
|
||||
%changelog
|
||||
* Tue May 06 2008 tiwai@suse.de
|
||||
- fix missing initializations in demo programs (bnc#351128)
|
||||
* Tue Apr 15 2008 schwab@suse.de
|
||||
- Fix configure script.
|
||||
* Thu Apr 10 2008 ro@suse.de
|
||||
|
Loading…
x
Reference in New Issue
Block a user