aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_pcm_dither.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_pcm_dither.c')
-rw-r--r--test/test_pcm_dither.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_pcm_dither.c b/test/test_pcm_dither.c
index 889c61ccd..44d105207 100644
--- a/test/test_pcm_dither.c
+++ b/test/test_pcm_dither.c
@@ -48,7 +48,7 @@ test_pcm_dither_24(void)
int16_t dest[N];
- pcm_dither_24_to_16(&dither, dest, src, N);
+ pcm_dither_24_to_16(&dither, dest, src, src + N);
for (unsigned i = 0; i < N; ++i) {
g_assert_cmpint(dest[i], >=, (src[i] >> 8) - 8);
@@ -70,7 +70,7 @@ test_pcm_dither_32(void)
int16_t dest[N];
- pcm_dither_32_to_16(&dither, dest, src, N);
+ pcm_dither_32_to_16(&dither, dest, src, src + N);
for (unsigned i = 0; i < N; ++i) {
g_assert_cmpint(dest[i], >=, (src[i] >> 16) - 8);