diff options
author | Diego Biurrun <diego@biurrun.de> | 2013-07-23 23:48:45 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2013-07-25 11:33:23 +0200 |
commit | 4a2ef39442bf7f0150db07a1fbfcf8286e4d44a3 (patch) | |
tree | 9dd31751557b65c912d2501a764fab5a9f663957 /libavcodec/vorbisenc.c | |
parent | 6c145ecf785dc3d26ba3fed3ea9892cc80244625 (diff) | |
download | ffmpeg-4a2ef39442bf7f0150db07a1fbfcf8286e4d44a3.tar.gz |
cosmetics: Add '0' to float constants ending in '.'.
Diffstat (limited to 'libavcodec/vorbisenc.c')
-rw-r--r-- | libavcodec/vorbisenc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/vorbisenc.c b/libavcodec/vorbisenc.c index db0394a7dc..e47f9965e9 100644 --- a/libavcodec/vorbisenc.c +++ b/libavcodec/vorbisenc.c @@ -189,7 +189,7 @@ static int ready_codebook(vorbis_enc_codebook *cb) cb->pow2[i] += cb->dimensions[i * cb->ndimensions + j] * cb->dimensions[i * cb->ndimensions + j]; div *= vals; } - cb->pow2[i] /= 2.; + cb->pow2[i] /= 2.0; } } return 0; @@ -728,7 +728,7 @@ static void floor_fit(vorbis_enc_context *venc, vorbis_enc_floor *fc, { int range = 255 / fc->multiplier + 1; int i; - float tot_average = 0.; + float tot_average = 0.0; float averages[MAX_FLOOR_VALUES]; for (i = 0; i < fc->values; i++) { averages[i] = get_floor_average(fc, coeffs, i); @@ -881,7 +881,7 @@ static int residue_encode(vorbis_enc_context *venc, vorbis_enc_residue *rc, assert(rc->type == 2); assert(real_ch == 2); for (p = 0; p < partitions; p++) { - float max1 = 0., max2 = 0.; + float max1 = 0.0, max2 = 0.0; int s = rc->begin + p * psize; for (k = s; k < s + psize; k += 2) { max1 = FFMAX(max1, fabs(coeffs[ k / real_ch])); @@ -968,7 +968,7 @@ static int apply_window_and_mdct(vorbis_enc_context *venc, int i, channel; const float * win = venc->win[0]; int window_len = 1 << (venc->log2_blocksize[0] - 1); - float n = (float)(1 << venc->log2_blocksize[0]) / 4.; + float n = (float)(1 << venc->log2_blocksize[0]) / 4.0; // FIXME use dsp if (!venc->have_saved && !samples) |