Bug#522241: sox: Don't play correctly .mp3 files
Package: sox Version: 14.2.0-1 Severity: normal This issue results from a misuse of the libmagic API, which happened to work anyway in older versions of libmagic. The patch below will work with both the current libmagic (5.00-1) and the previous version (4.26-1). I haven't looked at older versions. In any case, relying on libmagic to give the exact MIME type we're expecting seems like a poor idea. Shouldn't sox instead use libmagic's result as a *hint*, and, if the MIME type isn't recognized, fall back to other means of determining the type? --- sox-14.2.0/src/formats.c2008-11-01 13:08:04.0 -0400 +++ ../sox-14.2.0/src/formats.c 2009-04-05 15:09:18.0 -0400 @@ -421,7 +421,7 @@ if (!filetype) { static magic_t magic; if (!magic) { - magic = magic_open(MAGIC_MIME | MAGIC_SYMLINK); + magic = magic_open(MAGIC_MIME_TYPE | MAGIC_SYMLINK); if (magic) magic_load(magic, NULL); } -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#522241: sox: Don't play correctly .mp3 files
Package: sox Version: 14.2.0-1+b1 Severity: normal Sox don't play automatically mp3 files, the error is: $ play 07 -Ragazza Speciale.mp3 play formats: no handler for detected file type `audio/mpeg; charset=binary' but with the command: $ play -t mp3 07 -Ragazza Speciale.mp3 all is working fine. A quick google search report this to be related with the new version of 'file' -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (500, 'testing'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core) Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages sox depends on: ii libc6 2.9-4 GNU C Library: Shared libraries ii libltdl3 1.5.26-4 A system independent dlopen wrappe ii libmagic1 5.00-1File type determination library us ii libpng12-0 1.2.35-1 PNG library - runtime ii libsamplerate0 0.1.7-2 audio rate conversion library ii libsox-fmt-alsa14.2.0-1+b1 SoX alsa format I/O library ii libsox-fmt-ao 14.2.0-1+b1 SoX Libao format I/O library ii libsox-fmt-base14.2.0-1+b1 Minimal set of SoX format librarie ii libsox-fmt-oss 14.2.0-1+b1 SoX OSS format I/O library ii libsox114.2.0-1+b1 SoX library of audio effects and p ii zlib1g 1:1.2.3.3.dfsg-12 compression library - runtime sox recommends no packages. Versions of packages sox suggests: ii libsox-fmt-all 14.2.0-1+b1 All SoX format libraries -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org