shithub: dumb

Download patch

ref: 8d87ab8b9ec398cf3831b87dc969a28e278f3105
parent: 7ad496ecf2fd658a51de55df0e7f0257025038cc
author: Chris Moeller <kode54@gmail.com>
date: Mon Aug 6 20:02:03 EDT 2012

- Fixed XM sample header size handling to always assume a size of 0x28
- Version is now 0.9.9.56

--- a/dumb/src/it/readxm.c
+++ b/dumb/src/it/readxm.c
@@ -505,8 +505,10 @@
 
 	if (extra->n_samples) {
 		/* sample header size */
-		i = dumbfile_igetl(f);
-		if (!i || i > 0x28) i = 0x28;
+		/*i = dumbfile_igetl(f);
+		if (!i || i > 0x28) i = 0x28;*/
+		dumbfile_skip(f, 4);
+		i = 0x28;
 		extra->sample_header_size = i;
 
 		/* sample map */