summaryrefslogtreecommitdiff
path: root/plugins
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:56:50 +0100
commit7361e03ab3297dd6ecb9602d0ce7837fd0c5203f (patch)
treed1b75b5e2076a486379be33a6011545bafcc739a /plugins
parent7262368b6897b41188f0cf6844ca875027d425a4 (diff)
fixed 24bit wavpack bug
Diffstat (limited to 'plugins')
-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 ab876b97..d2e10687 100644
--- a/plugins/wavpack/wavpack.c
+++ b/plugins/wavpack/wavpack.c
@@ -154,7 +154,7 @@ wv_read_int16 (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--;