summaryrefslogtreecommitdiff
path: root/audio/wavegain/files/patch-audio.c
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>2020-09-25 08:19:28 +0000
committerStefan Eßer <se@FreeBSD.org>2020-09-25 08:19:28 +0000
commitce071d2fdd8b7199bf84126b41a6ec31924e0d7c (patch)
treec290136a048fea83d384ba64333e40cf296ffa4b /audio/wavegain/files/patch-audio.c
parentmail/thunderbird: update to 78.3.1 (rc1) (diff)
Fix build with -fno-common
While here fix compiler warnings
Diffstat (limited to 'audio/wavegain/files/patch-audio.c')
-rw-r--r--audio/wavegain/files/patch-audio.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/audio/wavegain/files/patch-audio.c b/audio/wavegain/files/patch-audio.c
index a62f45ed0d3f..5951345a5b52 100644
--- a/audio/wavegain/files/patch-audio.c
+++ b/audio/wavegain/files/patch-audio.c
@@ -1,4 +1,4 @@
---- audio.c.orig 2016-07-26 16:16:05 UTC
+--- audio.c.orig 2020-09-25 07:48:54 UTC
+++ audio.c
@@ -32,20 +32,8 @@
#include <sys/types.h>
@@ -21,3 +21,12 @@
#include "config.h"
#include "audio.h"
#include "i18n.h"
+@@ -642,7 +630,7 @@ int wav_open(FILE *in, wavegain_opt *opt, unsigned cha
+ if (!find_gain_chunk(in, &len))
+ FSEEK64(in, current_pos, SEEK_SET);
+ else {
+- char buf_double[8];
++ unsigned char buf_double[8];
+ opt->gain_chunk = 1;
+ fread(buf_double, 1, 8, in);
+ opt->gain_scale = READ_D64(buf_double);