changeset 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 72efeb4643b6
children 50bb9a6cebfe
files CHANGELOG decoders/timidity/resample.c
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/CHANGELOG	Fri Jul 06 11:29:02 2007 +0000
+++ b/CHANGELOG	Sun Jul 15 16:00:06 2007 +0000
@@ -2,6 +2,7 @@
  * CHANGELOG.
  */
 
+07152007 - Minor correction in Timidity resampling code (Thanks, Sam!).
 07062007 - Fixed uninitialized buffer in mpglib. (Thanks, Phil!).
 10292006 - Fixed bogus memory deference when SMPEG fails init (thanks, Chris!)
 10272006 - FLAC 1.1.3 breaks their API _again_, so we try to do the right
--- 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);