summaryrefslogtreecommitdiff
path: root/audio/mpg321/patches/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'audio/mpg321/patches/patch-ab')
-rw-r--r--audio/mpg321/patches/patch-ab12
1 files changed, 12 insertions, 0 deletions
diff --git a/audio/mpg321/patches/patch-ab b/audio/mpg321/patches/patch-ab
new file mode 100644
index 00000000000..eabbf2fa711
--- /dev/null
+++ b/audio/mpg321/patches/patch-ab
@@ -0,0 +1,12 @@
+$NetBSD: patch-ab,v 1.1 2010/05/19 18:25:19 drochner Exp $
+
+--- ao.c.orig 2010-05-19 15:45:33.000000000 +0000
++++ ao.c
+@@ -229,6 +229,7 @@ void open_ao_playdevice(struct mad_heade
+ and restore it afterwards */
+ signal(SIGINT, SIG_DFL);
+
++ memset(&format, 0, sizeof(format));
+ format.bits = 16;
+ format.rate = header->samplerate;
+ format.channels = (options.opt & MPG321_FORCE_STEREO) ? 2 : MAD_NCHANNELS(header);