diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2010-01-27 19:54:15 +0100 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2010-01-27 19:54:15 +0100 |
commit | 9cd3874c0eac44314c645f628dffced6e7926147 (patch) | |
tree | b36472185df8761245b1a6788e8f79100e1b8ad8 /plugins/wavpack | |
parent | b36f9a2436bd737cd1f7660488ae73cfd626cce3 (diff) |
fixed 24bit wavpack bug
Diffstat (limited to 'plugins/wavpack')
-rw-r--r-- | plugins/wavpack/wavpack.c | 2 |
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--; |