/[packages]/cauldron/SDL_mixer/current/SOURCES/SDL_mixer-1.2.11-mga-uninit-var-fix.patch
ViewVC logotype

Contents of /cauldron/SDL_mixer/current/SOURCES/SDL_mixer-1.2.11-mga-uninit-var-fix.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 18958 - (show annotations) (download)
Sat Jan 15 15:49:31 2011 UTC (13 years, 3 months ago) by supp
File size: 822 byte(s)
- add patch (from upstream) fixing some uninitialized values...
1 --- a/music_flac.c 2011-01-15 16:37:56.000000000 +0100
2 +++ b/music_flac.c 2011-01-15 16:37:59.000000000 +0100
3 @@ -405,7 +405,6 @@
4 /* Read some FLAC stream data and convert it for output */
5 static void FLAC_getsome(FLAC_music *music)
6 {
7 - int section;
8 SDL_AudioCVT *cvt;
9
10 /* GET AUDIO wAVE DATA */
11 @@ -475,7 +474,7 @@
12 return;
13 }
14 cvt = &music->cvt;
15 - if (section != music->section) {
16 + if (music->section < 0) {
17
18 SDL_BuildAudioCVT (cvt, AUDIO_S16, (Uint8)music->flac_data.channels,
19 (int)music->flac_data.sample_rate, mixer.format,
20 @@ -484,7 +483,7 @@
21 free (cvt->buf);
22 }
23 cvt->buf = (Uint8 *)malloc (music->flac_data.data_len * cvt->len_mult);
24 - music->section = section;
25 + music->section = 0;
26 }
27 if (cvt->buf) {
28 memcpy (cvt->buf, music->flac_data.data, music->flac_data.data_read);
29

  ViewVC Help
Powered by ViewVC 1.1.30