diff options
author | Jens Granseuer <jensgr@gmx.net> | 2007-08-03 19:40:14 +0000 |
---|---|---|
committer | Sebastian Dröge <slomo@circular-chaos.org> | 2007-08-03 19:40:14 +0000 |
commit | ef33f2fdc4e0748eaeff0d49888e497cf4a7a27b (patch) | |
tree | fffe5f1a370ea7521193b7e337c71802007c8672 /gst/audioconvert/gstaudioquantize.c | |
parent | 607fa48ad821a820c67087bd8cd344bfd492c0f6 (diff) | |
download | gstreamer-plugins-base-ef33f2fdc4e0748eaeff0d49888e497cf4a7a27b.tar.gz |
gst/audioconvert/gstaudioquantize.c: Fix C89 incompatibilities and spelling of explanations. Fixes #463215.
Original commit message from CVS:
Patch by: Jens Granseuer <jensgr at gmx dot net>
* gst/audioconvert/gstaudioquantize.c:
Fix C89 incompatibilities and spelling of explanations. Fixes #463215.
Diffstat (limited to 'gst/audioconvert/gstaudioquantize.c')
-rw-r--r-- | gst/audioconvert/gstaudioquantize.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gst/audioconvert/gstaudioquantize.c b/gst/audioconvert/gstaudioquantize.c index 2198845d9..3dcb68e5a 100644 --- a/gst/audioconvert/gstaudioquantize.c +++ b/gst/audioconvert/gstaudioquantize.c @@ -56,13 +56,13 @@ MAKE_QUANTIZE_FUNC_NAME (name) (AudioConvertCtx *ctx, gint32 *src, \ gint32 tmp; \ guint32 mask = 0xffffffff & (0xffffffff << scale); \ guint32 bias = 1U << (scale - 1); \ - DITHER_INIT_FUNC(); \ + DITHER_INIT_FUNC() \ \ for (;count;count--) { \ for (chan_pos = 0; chan_pos < channels; chan_pos++) { \ tmp = *src++; \ - ADD_DITHER_FUNC(); \ - ROUND_FUNC(); \ + ADD_DITHER_FUNC() \ + ROUND_FUNC() \ *dst = tmp & mask; \ dst++; \ } \ @@ -95,17 +95,17 @@ MAKE_QUANTIZE_FUNC_NAME (name) (AudioConvertCtx *ctx, gdouble *src, \ \ if (scale > 0) { \ gdouble tmp; \ - DITHER_INIT_FUNC(); \ - NS_INIT_FUNC(); \ + DITHER_INIT_FUNC() \ + NS_INIT_FUNC() \ \ for (;count;count--) { \ for (chan_pos = 0; chan_pos < channels; chan_pos++) { \ tmp = *src++; \ - ADD_NS_FUNC(); \ - ADD_DITHER_FUNC(); \ + ADD_NS_FUNC() \ + ADD_DITHER_FUNC() \ tmp = floor(tmp * factor + 0.5); \ *dst = CLAMP (tmp, -factor - 1, factor); \ - UPDATE_ERROR_FUNC(); \ + UPDATE_ERROR_FUNC() \ dst++; \ } \ } \ @@ -220,7 +220,7 @@ MAKE_QUANTIZE_FUNC_NAME (name) (AudioConvertCtx *ctx, gdouble *src, \ tmp += rand; /* Noise shaping definitions. - * See http://en.wikipedia.org/wiki/Noise_shaping for explainations. */ + * See http://en.wikipedia.org/wiki/Noise_shaping for explanations. */ /* Simple error feedback: Just accumulate the dithering and quantization @@ -388,7 +388,7 @@ static AudioConvertQuantize quantize_funcs[] = { (AudioConvertQuantize) MAKE_QUANTIZE_FUNC_NAME (float_tpdf_hf_error_feedback), (AudioConvertQuantize) MAKE_QUANTIZE_FUNC_NAME (float_tpdf_hf_simple), (AudioConvertQuantize) MAKE_QUANTIZE_FUNC_NAME (float_tpdf_hf_medium), - (AudioConvertQuantize) MAKE_QUANTIZE_FUNC_NAME (float_tpdf_hf_high), + (AudioConvertQuantize) MAKE_QUANTIZE_FUNC_NAME (float_tpdf_hf_high) }; static void |