summaryrefslogtreecommitdiff
path: root/apps/codecs/libwavpack/pack.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libwavpack/pack.c')
-rw-r--r--apps/codecs/libwavpack/pack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/codecs/libwavpack/pack.c b/apps/codecs/libwavpack/pack.c
index da4d3f328f..588efccc6f 100644
--- a/apps/codecs/libwavpack/pack.c
+++ b/apps/codecs/libwavpack/pack.c
@@ -96,7 +96,7 @@ static void write_decorr_weights (WavpackStream *wps, WavpackMetadata *wpmd)
96{ 96{
97 int tcount = wps->num_terms; 97 int tcount = wps->num_terms;
98 struct decorr_pass *dpp; 98 struct decorr_pass *dpp;
99 char *byteptr; 99 signed char *byteptr;
100 100
101 byteptr = wpmd->data = wpmd->temp_data; 101 byteptr = wpmd->data = wpmd->temp_data;
102 wpmd->id = ID_DECORR_WEIGHTS; 102 wpmd->id = ID_DECORR_WEIGHTS;
@@ -108,7 +108,7 @@ static void write_decorr_weights (WavpackStream *wps, WavpackMetadata *wpmd)
108 dpp->weight_B = restore_weight (*byteptr++ = store_weight (dpp->weight_B)); 108 dpp->weight_B = restore_weight (*byteptr++ = store_weight (dpp->weight_B));
109 } 109 }
110 110
111 wpmd->byte_length = byteptr - (char *) wpmd->data; 111 wpmd->byte_length = byteptr - (signed char *) wpmd->data;
112} 112}
113 113
114// Allocate room for and copy the decorrelation samples from the decorr_passes 114// Allocate room for and copy the decorrelation samples from the decorr_passes