Added a safety fix to playptmod for handling IFF headers in sample data with loops
parent
10e80e2965
commit
59a94badcd
|
@ -1346,6 +1346,7 @@ int playptmod_LoadMem(void *_p, const unsigned char *buf, unsigned long bufLengt
|
|||
{
|
||||
s->iffSize = j + 8;
|
||||
s->length -= s->iffSize;
|
||||
if (s->loopStart >= s->iffSize) s->loopStart -= s->iffSize;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue