Update DUMB to revision 02190e007b4967b8a546f64a3934724817ff5c3a

- Fixed MOD pattern count calculation in weird cases where the last sample is missing four bytes



SVN r4104 (trunk)
This commit is contained in:
Randy Heit 2013-02-08 00:58:50 +00:00
parent 2b2a86a13e
commit 5c65f7188e

View file

@ -647,7 +647,7 @@ static DUMB_IT_SIGDATA *it_mod_load_sigdata(DUMBFILE *f, int rstrict)
} }
} }
if (remain > total_sample_size) { if (remain > total_sample_size) {
sigdata->n_patterns = ( remain - total_sample_size ) / ( 256 * sigdata->n_pchannels ); sigdata->n_patterns = ( remain - total_sample_size + 4 ) / ( 256 * sigdata->n_pchannels );
if (fft == DUMB_ID('M',0,0,0) || fft == DUMB_ID('8',0,0,0)) { if (fft == DUMB_ID('M',0,0,0) || fft == DUMB_ID('8',0,0,0)) {
remain -= sigdata->n_patterns * 256 * sigdata->n_pchannels; remain -= sigdata->n_patterns * 256 * sigdata->n_pchannels;
if (dumbfile_skip(f, remain - total_sample_size)) { if (dumbfile_skip(f, remain - total_sample_size)) {