SDL_mixer Bug, divide by zero in mix.c

In the ramp_out function of timidity/mix.c there is a place where variable c is used to divide a value by.

If c=0 then SDL_mixer will crash.

I’ve only seen this happen with PrBoom which uses
SDL_mixer to play mus files that have been internally coverted to mid files.

Fix: I set c to 1 if c = 0 and this seems to be ok but I’ve not tested this much.–


Have you downloaded the latest calling software from Net2Phone? Click here to get it now!

http://www.net2phone.com/cgi-bin/adforward.cgi?p_key=NH211JK&url=http://commcenter.net2phone.com/

In the ramp_out function of timidity/mix.c there is a place where variable c is used to divide a value by.

If c=0 then SDL_mixer will crash.

Thanks! Your fix has been added to CVS.

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment