From e0b3e06beab2c874a2fe322570a02e83f916df55 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 1 Jul 2022 12:40:19 +0200 Subject: [PATCH] audioconvert: remove unused field --- spa/plugins/audioconvert/audioconvert.c | 6 ++---- spa/plugins/audioconvert/fmt-ops.h | 1 - 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/spa/plugins/audioconvert/audioconvert.c b/spa/plugins/audioconvert/audioconvert.c index 7d46df2af..ae3e4d7c3 100644 --- a/spa/plugins/audioconvert/audioconvert.c +++ b/spa/plugins/audioconvert/audioconvert.c @@ -1429,7 +1429,6 @@ static int setup_out_convert(struct impl *this) break; } } - out->conv.quantize = calc_width(&dst_info) * 8; out->conv.src_fmt = src_info.info.raw.format; out->conv.dst_fmt = dst_info.info.raw.format; out->conv.rate = dst_info.info.raw.rate; @@ -1439,10 +1438,9 @@ static int setup_out_convert(struct impl *this) if ((res = convert_init(&out->conv)) < 0) return res; - spa_log_debug(this->log, "%p: got converter features %08x:%08x quant:%d:%d:%d passthrough:%d %s", this, + spa_log_debug(this->log, "%p: got converter features %08x:%08x quant:%d:%d passthrough:%d %s", this, this->cpu_flags, out->conv.cpu_flags, out->conv.method, - out->conv.quantize, out->conv.noise, - out->conv.is_passthrough, out->conv.func_name); + out->conv.noise, out->conv.is_passthrough, out->conv.func_name); return 0; } diff --git a/spa/plugins/audioconvert/fmt-ops.h b/spa/plugins/audioconvert/fmt-ops.h index a4ccca8d3..222f782b9 100644 --- a/spa/plugins/audioconvert/fmt-ops.h +++ b/spa/plugins/audioconvert/fmt-ops.h @@ -189,7 +189,6 @@ struct shaper { }; struct convert { - uint32_t quantize; uint32_t noise; #define DITHER_METHOD_NONE 0 #define DITHER_METHOD_RECTANGULAR 1