Package: wavsplit Version: 1.1.0-2 Severity: important Tags: patch Invoking wavsplit on a valid 44100 Hz 16 Bit Stereo PCM wave file leads to an error message "Only supports PCM wave format tag = 44100, PCM = 1" The cause is the use of u_long in the waveheader struct in wavsplit.h On AMD64 u_long is 64 bits long while the field length is only 32 bits. Attached patch fixes the problem for me.
-- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18-rc4 Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Versions of packages wavsplit depends on: ii libc6 2.3.6-19 GNU C Library: Shared libraries wavsplit recommends no packages. -- no debconf information
diff -Naur wavsplit-1.1.0.orig/wavsplit.h wavsplit-1.1.0/wavsplit.h --- wavsplit-1.1.0.orig/wavsplit.h 2004-04-12 11:35:52.000000000 +0200 +++ wavsplit-1.1.0/wavsplit.h 2006-08-13 02:23:36.000000000 +0200 @@ -15,6 +15,9 @@ #include <string.h> #include <assert.h> +#include <stdint.h> +#define u_long uint32_t + #define VERSION "1.1.0" #define MAX_PATH 255 #define BUFFERSIZE 65536