The followind patch should correct the behaviour.
Not tested (later I'll create a big wav test-file).

--- wavsplit.c  2008-01-15 08:22:04.000000000 +0100
+++ ../orig/wavsplit-1.1.0/wavsplit.c   2004-04-12 11:35:52.000000000 +0200
@@ -248,8 +248,7 @@
            unsigned int fps, int splits, timepos * split)
 {
   char *buf, *bp_out;
-  long to_write, to_read, n_read;
-  off_t pos;
+  long to_write, to_read, n_read, pos;
   int fnr = 0;
   unsigned long in_blk_size;
   struct stat stat_buf;


Cyril: do you still want to maintain whis package?
in sf there are new versions.


I think that the code should be re-organized.
"pos" is used only on two places, so IMHO we could
remove it and work with relative positions.

Also the calculation of split is not very good
for bigger files (doubles is not byte precise
for big numbers). Doing integer calculation
is IMHO better.

ciao
        cate



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to