Bug#595104: vorbis-tools: oggdec borks output when writing to stdout
Joao Paulo Pinharanda Magalhaes
joaoppmagalhaes at gmail.com
Wed Sep 1 03:58:04 UTC 2010
Package: vorbis-tools
Version: 1.4.0-1
Severity: important
Tags: upstream patch
When oggdec writes stdout, it borks the output wav with the version string.
oggdec --output - -- air.ogg > stdout.wav # stdout.wav is broken (white noise appears)
oggdec --output air.wav air.ogg # air.wav is ok
oggdec --output - -- --quiet air.ogg > quiet.wav # quiet.wav is ok
The problem was identified in https://bbs.archlinux.org/viewtopic.php?pid=748258 as oggdec writing the version string to stdout rather than stderr.
Patch is below:
--- oggdec/oggdec.c 2010-09-01 04:41:08.000000000 +0100
+++ oggdec/oggdec.c.orig 2010-09-01 04:41:45.000000000 +0100
@@ -47,7 +47,7 @@
char *outfilename = NULL;
static void version (void) {
- fprintf(stderr, _("oggdec from %s %s\n"), PACKAGE, VERSION);
+ fprintf(stdout, _("oggdec from %s %s\n"), PACKAGE, VERSION);
}
static void usage(void)
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages vorbis-tools depends on:
ii libao4 1.0.0-5 Cross Platform Audio Output Librar
ii libc6 2.11.2-2 Embedded GNU C Library: Shared lib
ii libcurl3-gnutls 7.21.0-1 Multi-protocol file transfer libra
ii libflac8 1.2.1-2+b1 Free Lossless Audio Codec - runtim
ii libogg0 1.2.0~dfsg-1 Ogg bitstream library
ii libspeex1 1.2~rc1-1 The Speex codec runtime library
ii libvorbis0a 1.3.1-1 The Vorbis General Audio Compressi
ii libvorbisenc2 1.3.1-1 The Vorbis General Audio Compressi
ii libvorbisfile3 1.3.1-1 The Vorbis General Audio Compressi
vorbis-tools recommends no packages.
vorbis-tools suggests no packages.
-- no debconf information
More information about the pkg-xiph-maint
mailing list