mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-03-01 23:20:44 +00:00
Merge pull request #144 from jonathangray/timidity-resample-fix
Fix memory corruption in timidity resampling code
This commit is contained in:
commit
78c18d972d
1 changed files with 1 additions and 1 deletions
|
@ -710,7 +710,7 @@ void pre_resample(Sample * sp)
|
|||
while (--count)
|
||||
{
|
||||
vptr = src + (ofs >> FRACTION_BITS);
|
||||
v1 = *(vptr - 1);
|
||||
v1 = (vptr == src) ? *vptr : *(vptr - 1);
|
||||
v2 = *vptr;
|
||||
v3 = *(vptr + 1);
|
||||
v4 = *(vptr + 2);
|
||||
|
|
Loading…
Reference in a new issue