Your message dated Sun, 06 Dec 2009 21:33:24 +0000
with message-id <[email protected]>
and subject line Bug#443888: fixed in audiofile 0.2.6-8
has caused the Debian Bug report #443888,
regarding creates buggy WAV files
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
443888: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=443888
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libaudiofile0
Version: 0.2.6-6
Severity: normal
Depending on the size of the WAV file, audiofile is not able to re-read the
just created WAV file. I believe this is due to an invalid header.
Please see the attached program which is derived from test/writewave.c. Note
that I'm no expert w.r.t. to WAV files or audiofile. Please let me know if I do
not use audiofile in a correct way.
$ ./bug test.wav 33554434
Audio File Library: WAVE header ended unexpectedly [error 62]
$ ./bug test.wav 33554438
Audio File Library: file missing data -- read 16777219 frames, should be
16777220 [error 5]
$ ./bug test.wav 67108866
Audio File Library: WAVE header ended unexpectedly [error 62]
$ ./bug test.wav 67108868
Audio File Library: WAVE header ended unexpectedly [error 62]
$ ./bug test.wav 67108870
Audio File Library: file missing data -- read 33554435 frames, should be
33554436 [error 5]
$
Note that the given numbers are just a few bytes larger than powers of two.
shninfo reports "inconsistent header", flac complains about too less
samples.
This problem also affects normalize-audio (bug #442433 lead to the discovery
of this bug). As you can see in #442433 the problem can lead to data loss,
hence you might want to consider to raise the severity to important.
Kind regards,
Joachim
-- System Information:
Debian Release: 4.0
APT prefers stable
APT policy: (800, 'stable'), (750, 'testing'), (200, 'unstable'), (50,
'experimental')
Architecture: amd64 (x86_64)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.20-jr3-enterprise-e
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages libaudiofile0 depends on:
ii libc6 2.6-2 GNU C Library: Shared libraries
libaudiofile0 recommends no packages.
-- no debconf information
/*
Audio File Library
Copyright 1998-1999, Michael Pruett <[email protected]>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of
the License, or (at your option) any later version.
This program is distributed in the hope that it will be
useful, but WITHOUT ANY WARRANTY; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public
License along with this program; if not, write to the Free
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
MA 02111-1307, USA.
*/
/*
writewave.c
This program tests the validity of the MS RIFF Wave format reading
and writing code.
*/
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#ifdef __USE_SGI_HEADERS__
#include <dmedia/audiofile.h>
#else
#include <audiofile.h>
#endif
char* TEST_FILE;
#define BUFFER_SIZE (512*1024)
void cleanup (void)
{
#ifndef DEBUG
unlink(TEST_FILE);
#endif
}
void ensure (int condition, const char *message)
{
if (!condition)
{
printf("%s.\n", message);
cleanup();
exit(EXIT_FAILURE);
}
}
int main (int argc, char **argv)
{
AFfilehandle file;
AFfilesetup setup;
u_int16_t samples[BUFFER_SIZE], samples2[BUFFER_SIZE];
int i, n;
int sampleFormat, sampleWidth;
int framesRead, framesWritten;
for (i=0; i<BUFFER_SIZE; i++)
samples[i]=i;
ensure (argc == 1+2, "wrong numbers of parameters");
TEST_FILE = argv[1];
n = atoi(argv[2]);
ensure (n % 2 == 0, "number of byte must be even");
n = n / 2;
setup = afNewFileSetup();
afInitFileFormat(setup, AF_FILE_WAVE);
afInitChannels(setup, AF_DEFAULT_TRACK, 1);
afInitSampleFormat(setup, AF_DEFAULT_TRACK, AF_SAMPFMT_TWOSCOMP, 16);
file = afOpenFile(TEST_FILE, "w", setup);
ensure(file != AF_NULL_FILEHANDLE, "unable to open file for writing");
i = BUFFER_SIZE;
while (n > 0)
{
if (n < BUFFER_SIZE)
i = n;
framesWritten = afWriteFrames(file, AF_DEFAULT_TRACK, samples, i);
ensure(framesWritten == i,
"number of frames written does not match number of frames requested");
n = n-i;
}
ensure(afCloseFile(file) == 0, "error closing file");
afFreeFileSetup(setup);
file = afOpenFile(TEST_FILE, "r", NULL);
ensure(file != AF_NULL_FILEHANDLE, "unable to open file for reading");
ensure(afGetFileFormat(file, NULL) == AF_FILE_WAVE,
"test file not created as Wave");
afGetSampleFormat(file, AF_DEFAULT_TRACK, &sampleFormat, &sampleWidth);
ensure(sampleFormat == AF_SAMPFMT_TWOSCOMP,
"test file not two's complement");
ensure(sampleWidth == 16,
"test file sample format is not 16-bit");
ensure(afGetChannels(file, AF_DEFAULT_TRACK) == 1,
"test file doesn't have exactly one channel");
ensure(afGetByteOrder(file, AF_DEFAULT_TRACK) == AF_BYTEORDER_LITTLEENDIAN,
"test file not little-endian");
i = 0;
framesRead = afReadFrames(file, AF_DEFAULT_TRACK, samples2, BUFFER_SIZE);
while (framesRead > 0)
{
/*
int j;
for (j = 0; j < framesRead; j++)
{
if (samples2[j] != samples[j])
printf("i=%d, j=%d\n", i, j);
ensure(samples2[j] == samples[j],
"data written to file doesn't match data read from file");
}
*/
framesRead = afReadFrames(file, AF_DEFAULT_TRACK, samples2, BUFFER_SIZE);
i = i+1;
}
ensure(afCloseFile(file) == 0, "error closing file");
cleanup();
exit(0);
}
--- End Message ---
--- Begin Message ---
Source: audiofile
Source-Version: 0.2.6-8
We believe that the bug you reported is fixed in the latest version of
audiofile, which is due to be installed in the Debian FTP archive:
audiofile_0.2.6-8.diff.gz
to main/a/audiofile/audiofile_0.2.6-8.diff.gz
audiofile_0.2.6-8.dsc
to main/a/audiofile/audiofile_0.2.6-8.dsc
libaudiofile-dev_0.2.6-8_amd64.deb
to main/a/audiofile/libaudiofile-dev_0.2.6-8_amd64.deb
libaudiofile0-dbg_0.2.6-8_amd64.deb
to main/a/audiofile/libaudiofile0-dbg_0.2.6-8_amd64.deb
libaudiofile0_0.2.6-8_amd64.deb
to main/a/audiofile/libaudiofile0_0.2.6-8_amd64.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Daniel Kobras <[email protected]> (supplier of updated audiofile package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Sun, 06 Dec 2009 20:15:09 +0100
Source: audiofile
Binary: libaudiofile-dev libaudiofile0 libaudiofile0-dbg
Architecture: source amd64
Version: 0.2.6-8
Distribution: unstable
Urgency: low
Maintainer: Daniel Kobras <[email protected]>
Changed-By: Daniel Kobras <[email protected]>
Description:
libaudiofile-dev - Open-source version of SGI's audiofile library (header
files)
libaudiofile0 - Open-source version of SGI's audiofile library
libaudiofile0-dbg - Open-source version of SGI's audiofile library
Closes: 443888
Changes:
audiofile (0.2.6-8) unstable; urgency=low
.
* Added patches:
+ [10_float_size_calculation_fix] New.
Fix incorrect calculation of WAV sizes due to rounding errors.
Patch thanks to Thomas Eschenbacher. Closes: #443888
* debian/compat, debian/rules: No longer set debhelper compat level from
rules file.
* debian/control: Move dbg package to section debug, priority extra.
* debian/control: Replace Source-Version substitutions with
binary:Version.
* debian/control: Complies with version 3.8.3 of Debian policy.
* debian/README.source: Refer to dpatch documentation.
Checksums-Sha1:
7d4cbb8d755f6af053ed75d1494ec233207a732b 1028 audiofile_0.2.6-8.dsc
388007c8a141e1aca4ffdc8bb836a8ddfc558198 301593 audiofile_0.2.6-8.diff.gz
c465c080a9fe9fbe3c2c37160888817b52a39a20 130752
libaudiofile-dev_0.2.6-8_amd64.deb
a5a1b4ed15c47bc94c3d6511ff6c7518051f31d0 84388 libaudiofile0_0.2.6-8_amd64.deb
69eeca5ae41b29c66d6ebacad68524b28722301b 170022
libaudiofile0-dbg_0.2.6-8_amd64.deb
Checksums-Sha256:
a300e4c5fe31ac4b80552b89b31e7f090d9d948705741f108d08eeb5e43ac54e 1028
audiofile_0.2.6-8.dsc
515be7356ba8ec74687cbdda54a5a8e439fc660104e00605da3e5c69b1cdeff8 301593
audiofile_0.2.6-8.diff.gz
884a685697d11c6ea020e8b6effdefd39f7c6f3dcb7774475b980c494ced9ad8 130752
libaudiofile-dev_0.2.6-8_amd64.deb
ccec5a89af1e489245ecddab53c3701ae5280ffc936d04c0ff62b844328ea026 84388
libaudiofile0_0.2.6-8_amd64.deb
e0d78fd72f588928561d878f091131651a25cbed13d6c3b2a7bcfeae19b03282 170022
libaudiofile0-dbg_0.2.6-8_amd64.deb
Files:
d86c32f02f2146514d4743f23d930aa8 1028 libs optional audiofile_0.2.6-8.dsc
02e7a974f41215e7ae9cc8f83529cbd4 301593 libs optional audiofile_0.2.6-8.diff.gz
06c4cef061ac9fecf9f5d5cabe406151 130752 libdevel optional
libaudiofile-dev_0.2.6-8_amd64.deb
ed1f1ca3618fac6377de5d1369af51ff 84388 libs optional
libaudiofile0_0.2.6-8_amd64.deb
6bfb2d376a21b098a12b8c3c447d2583 170022 debug extra
libaudiofile0-dbg_0.2.6-8_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iEYEARECAAYFAkscHBsACgkQpOKIA4m/fisYSgCg2OjbEe6UrLthpfLpaT6EqHSg
VMUAnifxT+CEa+r8paUVfwkuMNrvgmfG
=gNcj
-----END PGP SIGNATURE-----
--- End Message ---