aboutsummaryrefslogtreecommitdiff
path: root/src/pcm_format.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_format.c
parente93dd374a46270d6cd873b7e2db557b346b1aac7 (diff)
pcm_pack: pass an "end" pointer instead of a sample count
Diffstat (limited to 'src/pcm_format.c')
-rw-r--r--src/pcm_format.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pcm_format.c b/src/pcm_format.c
index 544b0ccd..21459f0f 100644
--- a/src/pcm_format.c
+++ b/src/pcm_format.c
@@ -54,7 +54,7 @@ pcm_convert_24_to_24p32(struct pcm_buffer *buffer, const uint8_t *src,
unsigned num_samples)
{
int32_t *dest = pcm_buffer_get(buffer, num_samples * 4);
- pcm_unpack_24(dest, src, num_samples, false);
+ pcm_unpack_24(dest, src, src + num_samples * 3, false);
return dest;
}