aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcm_convert.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-10-09 12:48:17 +0200
committerMax Kellermann <max@duempel.org>2011-10-10 10:24:05 +0200
commita47e9d1a4b5bd6b999eaec33624d7c96a29f24e6 (patch)
tree99d1bfef2c1e739dfba50717c26ee19107e9a496 /src/pcm_convert.c
parente93dd374a46270d6cd873b7e2db557b346b1aac7 (diff)
downloadmpd-a47e9d1a4b5bd6b999eaec33624d7c96a29f24e6.tar.gz
mpd-a47e9d1a4b5bd6b999eaec33624d7c96a29f24e6.tar.xz
mpd-a47e9d1a4b5bd6b999eaec33624d7c96a29f24e6.zip
pcm_pack: pass an "end" pointer instead of a sample count
Diffstat (limited to '')
-rw-r--r--src/pcm_convert.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pcm_convert.c b/src/pcm_convert.c
index 4dbeee41f..c145e437a 100644
--- a/src/pcm_convert.c
+++ b/src/pcm_convert.c
@@ -200,7 +200,8 @@ pcm_convert_24_packed(struct pcm_convert_state *state,
size_t dest_size = num_samples * 3;
uint8_t *dest = pcm_buffer_get(&state->pack_buffer, dest_size);
- pcm_pack_24(dest, buffer, num_samples, dest_format->reverse_endian);
+ pcm_pack_24(dest, buffer, buffer + num_samples,
+ dest_format->reverse_endian);
*dest_size_r = dest_size;
return dest;