blob: 251aa1de8acc5eb36e919fbf008aba42540c77ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
$NetBSD: patch-ab,v 1.2 2011/10/18 11:13:56 ryoon Exp $
--- ao.c.orig 2011-10-01 09:50:12.000000000 +0000
+++ ao.c
@@ -234,6 +234,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);
|