aboutsummaryrefslogtreecommitdiffstats
path: root/test
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 /test
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 'test')
-rw-r--r--test/test_pcm_pack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_pcm_pack.c b/test/test_pcm_pack.c
index 81bc32575..921bb7932 100644
--- a/test/test_pcm_pack.c
+++ b/test/test_pcm_pack.c
@@ -44,7 +44,7 @@ test_pcm_pack_24(void)
uint8_t dest[N * 3];
- pcm_pack_24(dest, src, N, false);
+ pcm_pack_24(dest, src, src + N, false);
for (unsigned i = 0; i < N; ++i) {
int32_t d;
@@ -71,7 +71,7 @@ test_pcm_unpack_24(void)
int32_t dest[N];
- pcm_unpack_24(dest, src, N, false);
+ pcm_unpack_24(dest, src, src + G_N_ELEMENTS(src), false);
for (unsigned i = 0; i < N; ++i) {
int32_t s;