aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/_flac_common.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-11-10 19:57:58 +0100
committerMax Kellermann <max@duempel.org>2009-11-10 19:57:58 +0100
commit118495d37216ec296909154f0bda20e7febbd142 (patch)
tree85e18ed54ee54ddaba03c5c9ba1764419fca2c57 /src/decoder/_flac_common.c
parenta6bee71f1aaba872b9acef8827e149dd631431c3 (diff)
downloadmpd-118495d37216ec296909154f0bda20e7febbd142.tar.gz
mpd-118495d37216ec296909154f0bda20e7febbd142.tar.xz
mpd-118495d37216ec296909154f0bda20e7febbd142.zip
decoder/flac: pass void pointer to flac_convert()
That function diverts into various bit formats; it doesn't need a typed pointer.
Diffstat (limited to 'src/decoder/_flac_common.c')
-rw-r--r--src/decoder/_flac_common.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/decoder/_flac_common.c b/src/decoder/_flac_common.c
index 09575926a..2eaeb2449 100644
--- a/src/decoder/_flac_common.c
+++ b/src/decoder/_flac_common.c
@@ -290,11 +290,11 @@ flac_convert_8(int8_t *dest,
*dest++ = buf[c_chan][position];
}
-static void flac_convert(unsigned char *dest,
- unsigned int num_channels,
- unsigned sample_format,
- const FLAC__int32 * const buf[],
- unsigned int position, unsigned int end)
+static void
+flac_convert(void *dest,
+ unsigned int num_channels, unsigned sample_format,
+ const FLAC__int32 *const buf[],
+ unsigned int position, unsigned int end)
{
switch (sample_format) {
case 16: