From 118495d37216ec296909154f0bda20e7febbd142 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 10 Nov 2009 19:57:58 +0100 Subject: decoder/flac: pass void pointer to flac_convert() That function diverts into various bit formats; it doesn't need a typed pointer. --- src/decoder/_flac_common.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') 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: -- cgit v1.2.3