aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/qcelpdec.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2013-07-23 23:48:45 +0200
committerDiego Biurrun <diego@biurrun.de>2013-07-25 11:33:23 +0200
commit4a2ef39442bf7f0150db07a1fbfcf8286e4d44a3 (patch)
tree9dd31751557b65c912d2501a764fab5a9f663957 /libavcodec/qcelpdec.c
parent6c145ecf785dc3d26ba3fed3ea9892cc80244625 (diff)
downloadffmpeg-4a2ef39442bf7f0150db07a1fbfcf8286e4d44a3.tar.gz
cosmetics: Add '0' to float constants ending in '.'.
Diffstat (limited to 'libavcodec/qcelpdec.c')
-rw-r--r--libavcodec/qcelpdec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/qcelpdec.c b/libavcodec/qcelpdec.c
index ead7d90ee1..3772e26f91 100644
--- a/libavcodec/qcelpdec.c
+++ b/libavcodec/qcelpdec.c
@@ -94,7 +94,7 @@ static av_cold int qcelp_decode_init(AVCodecContext *avctx)
avctx->sample_fmt = AV_SAMPLE_FMT_FLT;
for (i = 0; i < 10; i++)
- q->prev_lspf[i] = (i + 1) / 11.;
+ q->prev_lspf[i] = (i + 1) / 11.0;
return 0;
}
@@ -162,7 +162,7 @@ static int decode_lspf(QCELPContext *q, float *lspf)
} else {
q->octave_count = 0;
- tmp_lspf = 0.;
+ tmp_lspf = 0.0;
for (i = 0; i < 5; i++) {
lspf[2 * i + 0] = tmp_lspf += qcelp_lspvq[i][q->frame.lspv[i]][0] * 0.0001;
lspf[2 * i + 1] = tmp_lspf += qcelp_lspvq[i][q->frame.lspv[i]][1] * 0.0001;
@@ -434,7 +434,7 @@ static const float *do_pitchfilter(float memory[303], const float v_in[160],
v_lag = memory + 143 + 40 * i - lag[i];
for (v_len = v_in + 40; v_in < v_len; v_in++) {
if (pfrac[i]) { // If it is a fractional lag...
- for (j = 0, *v_out = 0.; j < 4; j++)
+ for (j = 0, *v_out = 0.0; j < 4; j++)
*v_out += qcelp_hammsinc_table[j] * (v_lag[j - 4] + v_lag[3 - j]);
} else
*v_out = *v_lag;