summaryrefslogtreecommitdiff
path: root/plugins/wavpack
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/wavpack')
-rw-r--r--plugins/wavpack/wavpack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/wavpack/wavpack.c b/plugins/wavpack/wavpack.c
index 19dcf3f3..e8027786 100644
--- a/plugins/wavpack/wavpack.c
+++ b/plugins/wavpack/wavpack.c
@@ -162,7 +162,7 @@ wv_read_int16 (DB_fileinfo_t *_info, char *bytes, int size) {
int32_t *p = buffer;
n *= nchannels;
while (n > 0) {
- *((int16_t *)bytes) = (int16_t)(*p);
+ *((int16_t *)bytes) = (int16_t)((*p) >> (_info->bps-16));
bytes += sizeof (int16_t);
p++;
n--;