[Scummvm-cvs-logs] CVS: tools compress_san.cpp,1.14,1.15

Pawel Kolodziejski aquadran at users.sourceforge.net
Sun Sep 19 00:25:01 CEST 2004


Update of /cvsroot/scummvm/tools
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27536

Modified Files:
	compress_san.cpp 
Log Message:
cut off audio track from comi cutscenes

Index: compress_san.cpp
===================================================================
RCS file: /cvsroot/scummvm/tools/compress_san.cpp,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- compress_san.cpp	20 Aug 2004 14:59:08 -0000	1.14
+++ compress_san.cpp	19 Sep 2004 07:24:00 -0000	1.15
@@ -138,7 +138,24 @@
 				free(zlibInputBuffer);
 				free(zlibOutputBuffer);
 				continue;
+			} else if (tag == 'IACT') {
+				size = readUint32BE(input); // chunk size
+				fseek(input, 2, SEEK_CUR);
+				int flags = readUint16LE(input);
+				int unk = readUint16BE(input);
+				int track_flags = readUint16LE(input);
+				// to be sure that is comi chunk
+				if ((track_flags != 0) || (unk != 0) || (flags != 46)) {
+					fseek(input, -8, SEEK_CUR);
+					goto skip;
+				}
+				if ((size & 1) != 0)
+					size++;
+				fseek(input, size - 8, SEEK_CUR);
+				frameInfo[l].frameSize -= size + 8;
+				continue;
 			} else {
+skip:
 				size = readUint32BE(input); // chunk size
 				writeUint32BE(output, tag);
 				writeUint32BE(output, size);





More information about the Scummvm-git-logs mailing list