Commit 118495d3 authored by Max Kellermann's avatar Max Kellermann

decoder/flac: pass void pointer to flac_convert()

That function diverts into various bit formats; it doesn't need a typed pointer.
parent a6bee71f
...@@ -290,10 +290,10 @@ flac_convert_8(int8_t *dest, ...@@ -290,10 +290,10 @@ flac_convert_8(int8_t *dest,
*dest++ = buf[c_chan][position]; *dest++ = buf[c_chan][position];
} }
static void flac_convert(unsigned char *dest, static void
unsigned int num_channels, flac_convert(void *dest,
unsigned sample_format, unsigned int num_channels, unsigned sample_format,
const FLAC__int32 * const buf[], const FLAC__int32 *const buf[],
unsigned int position, unsigned int end) unsigned int position, unsigned int end)
{ {
switch (sample_format) { switch (sample_format) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment