diff options
Diffstat (limited to 'audio/mpg321/files/patch-ao.c')
-rw-r--r-- | audio/mpg321/files/patch-ao.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/audio/mpg321/files/patch-ao.c b/audio/mpg321/files/patch-ao.c new file mode 100644 index 000000000000..9691820d0e17 --- /dev/null +++ b/audio/mpg321/files/patch-ao.c @@ -0,0 +1,13 @@ + +$FreeBSD$ + +--- 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); |