summaryrefslogtreecommitdiff
path: root/libavcodec/ra288.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-07-26 10:43:12 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-07-26 10:43:12 +0200
commitaf7949fdea2f3115c82143178a22a39afe7bbde1 (patch)
treea13279b4b881c3dbd172b21f9ea69321f3d9596b /libavcodec/ra288.c
parente28fabb4cbe5e7c6cde8a63733d7530f283a0acb (diff)
parent4a2ef39442bf7f0150db07a1fbfcf8286e4d44a3 (diff)
downloadffmpeg-af7949fdea2f3115c82143178a22a39afe7bbde1.tar.gz
Merge commit '4a2ef39442bf7f0150db07a1fbfcf8286e4d44a3'
* commit '4a2ef39442bf7f0150db07a1fbfcf8286e4d44a3': cosmetics: Add '0' to float constants ending in '.'. Conflicts: libavcodec/ra288.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/ra288.c')
-rw-r--r--libavcodec/ra288.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/ra288.c b/libavcodec/ra288.c
index 8590c7cd32..1f65710a42 100644
--- a/libavcodec/ra288.c
+++ b/libavcodec/ra288.c
@@ -95,7 +95,7 @@ static void decode(RA288Context *ractx, float gain, int cb_coef)
memmove(ractx->sp_hist + 70, ractx->sp_hist + 75, 36*sizeof(*block));
/* block 46 of G.728 spec */
- sum = 32.;
+ sum = 32.0;
for (i=0; i < 10; i++)
sum -= gain_block[9-i] * ractx->gain_lpc[i];
@@ -111,7 +111,7 @@ static void decode(RA288Context *ractx, float gain, int cb_coef)
sum = avpriv_scalarproduct_float_c(buffer, buffer, 5);
- sum = FFMAX(sum, 5. / (1<<24));
+ sum = FFMAX(sum, 5.0 / (1<<24));
/* shift and store */
memmove(gain_block, gain_block + 1, 9 * sizeof(*gain_block));
@@ -157,7 +157,7 @@ static void do_hybrid_window(RA288Context *ractx,
}
/* Multiply by the white noise correcting factor (WNCF). */
- *out *= 257./256.;
+ *out *= 257.0 / 256.0;
}
/**