Magellan Linux

Annotation of /trunk/libsdl/patches/libsdl-1.2.11-audioConv.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 144 - (hide annotations) (download)
Tue May 8 20:06:05 2007 UTC (17 years, 1 month ago) by niro
File size: 428 byte(s)
-import

1 niro 144 Fix segfault when auto converting stream #151991
2    
3     --- src/audio/SDL_audio.c
4     +++ src/audio/SDL_audio.c
5     @@ -591,7 +591,7 @@
6     return(-1);
7     }
8     if ( audio->convert.needed ) {
9     - audio->convert.len = desired->size;
10     + audio->convert.len = desired->size / audio->convert.len_ratio;
11     audio->convert.buf =(Uint8 *)SDL_AllocAudioMem(
12     audio->convert.len*audio->convert.len_mult);
13     if ( audio->convert.buf == NULL ) {