summaryrefslogtreecommitdiff
path: root/plugins/wavpack
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-01-27 19:54:15 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-01-27 19:54:15 +0100
commit9cd3874c0eac44314c645f628dffced6e7926147 (patch)
treeb36472185df8761245b1a6788e8f79100e1b8ad8 /plugins/wavpack
parentb36f9a2436bd737cd1f7660488ae73cfd626cce3 (diff)
fixed 24bit wavpack bug
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--;