Merge pull request #622 from bnnm/pt

pt
This commit is contained in:
bnnm 2020-05-12 18:40:27 +02:00 committed by GitHub
commit 9aaba3b30c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,7 +80,7 @@ void decode_ptadpcm(VGMSTREAMCHANNEL *stream, sample_t *outbuf, int channelspaci
sample_count++;
/* decode nibbles */
for (i = first_sample; i < first_sample + samples_to_do; i++) {
for (i = 0; i < samples_per_frame - 2; i++) {
uint8_t nibbles = frame[0x05 + i/2];
int32_t sample;