Fixed playptmod checking for ADPCM samples
parent
ee5821b45d
commit
240d7ae8ff
|
@ -1333,12 +1333,13 @@ int playptmod_LoadMem(void *_p, const unsigned char *buf, unsigned long bufLengt
|
|||
s->offset = sampleOffset;
|
||||
|
||||
j = (s->length + 1) / 2 + 5 + 16;
|
||||
if ( j > s->length ) j = s->length;
|
||||
|
||||
bufread(tempSample, 1, j, fmodule);
|
||||
|
||||
smpDat8 = tempSample;
|
||||
|
||||
if (s->length > 5 && memcmp(smpDat8, "ADPCM", 5) == 0)
|
||||
if (j > 5 + 16 && memcmp(smpDat8, "ADPCM", 5) == 0)
|
||||
{
|
||||
s->reallength = j;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue