Mercurial > SDL_sound_CoreAudio
diff decoders/timidity/resample.c @ 521:f33471c47efe stable-1.0
Minor correction in Timidity resampling code (Thanks, Sam!).
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Sun, 15 Jul 2007 16:00:06 +0000 |
parents | a73c51c12452 |
children |
line wrap: on
line diff
--- a/decoders/timidity/resample.c Fri Jul 06 11:29:02 2007 +0000 +++ b/decoders/timidity/resample.c Sun Jul 15 16:00:06 2007 +0000 @@ -584,7 +584,7 @@ * good thing to do when vptr <= src. (TiMidity++ has a similar * safe-guard here.) */ - v1 = (vptr > src) ? *(vptr - 1) : 0; + v1 = (vptr == src) ? *vptr : *(vptr - 1); v2 = *vptr; v3 = *(vptr + 1); v4 = *(vptr + 2);