[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
- Previous message: [Scummvm-cvs-logs] CVS: tools/dist/msvc8/compress_san compress_san.vcproj,NONE,1.1
- Next message: [Scummvm-cvs-logs] CVS: scummvm/scumm actor.cpp,1.292,1.293 intern.h,2.261,2.262 script_v72he.cpp,2.108,2.109 script_v80he.cpp,2.32,2.33 script_v90he.cpp,2.43,2.44 scumm.cpp,1.214,1.215
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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);
- Previous message: [Scummvm-cvs-logs] CVS: tools/dist/msvc8/compress_san compress_san.vcproj,NONE,1.1
- Next message: [Scummvm-cvs-logs] CVS: scummvm/scumm actor.cpp,1.292,1.293 intern.h,2.261,2.262 script_v72he.cpp,2.108,2.109 script_v80he.cpp,2.32,2.33 script_v90he.cpp,2.43,2.44 scumm.cpp,1.214,1.215
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list