diff options
author | Max Kellermann <max@duempel.org> | 2011-10-09 12:48:17 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2011-10-10 10:24:05 +0200 |
commit | a47e9d1a4b5bd6b999eaec33624d7c96a29f24e6 (patch) | |
tree | 99d1bfef2c1e739dfba50717c26ee19107e9a496 /src/pcm_format.c | |
parent | e93dd374a46270d6cd873b7e2db557b346b1aac7 (diff) | |
download | mpd-a47e9d1a4b5bd6b999eaec33624d7c96a29f24e6.tar.gz mpd-a47e9d1a4b5bd6b999eaec33624d7c96a29f24e6.tar.xz mpd-a47e9d1a4b5bd6b999eaec33624d7c96a29f24e6.zip |
pcm_pack: pass an "end" pointer instead of a sample count
Diffstat (limited to 'src/pcm_format.c')
-rw-r--r-- | src/pcm_format.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pcm_format.c b/src/pcm_format.c index 544b0ccd9..21459f0f4 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; } |