From e9885a8ebb13f5fde08dad0894a15e384613078f Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 25 Jun 2018 17:08:34 +0200 Subject: [PATCH] fmt-ops: fix f32 to u8 conversion --- spa/plugins/audioconvert/fmt-ops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spa/plugins/audioconvert/fmt-ops.c b/spa/plugins/audioconvert/fmt-ops.c index 568e34da8..934ce69bc 100644 --- a/spa/plugins/audioconvert/fmt-ops.c +++ b/spa/plugins/audioconvert/fmt-ops.c @@ -317,8 +317,8 @@ conv_f32_to_u8d(void *data, int n_dst, void *dst[n_dst], int n_src, const void * static void conv_f32d_to_u8(void *data, int n_dst, void *dst[n_dst], int n_src, const void *src[n_src], int n_bytes) { - const int8_t **s = (const int8_t **) src; - float *d = dst[0]; + const float **s = (const float **) src; + int8_t *d = dst[0]; int i, n, n_samples; n_samples = n_bytes / sizeof(float);