aboutsummaryrefslogtreecommitdiff
path: root/audio/mpg321/files/patch-ao.c
blob: 46f3c055557602f1078cf0ad7bcc926afd4be175 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
--- ao.c.orig
+++ ao.c
@@ -229,6 +229,7 @@
            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);