Added a safety fix to playptmod for handling IFF headers in sample data with loops

CQTexperiment
Chris Moeller 2014-04-15 17:07:20 -07:00
parent 10e80e2965
commit 59a94badcd
1 changed files with 1 additions and 0 deletions

View File

@ -1346,6 +1346,7 @@ int playptmod_LoadMem(void *_p, const unsigned char *buf, unsigned long bufLengt
{ {
s->iffSize = j + 8; s->iffSize = j + 8;
s->length -= s->iffSize; s->length -= s->iffSize;
if (s->loopStart >= s->iffSize) s->loopStart -= s->iffSize;
break; break;
} }
} }