Browse Source

avcodec/mpegaudio_tablegen: remove dead branch

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.1
Michael Niedermayer 11 years ago
parent
commit
2a19fcc123
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/mpegaudio_tablegen.h

+ 1
- 1
libavcodec/mpegaudio_tablegen.h View File

@@ -63,7 +63,7 @@ static void mpegaudio_tableinit(void)
/* cbrtf() isn't available on all systems, so we use powf(). */
double f = (double)value * pow(value, 1.0 / 3.0) * pow(2, (exponent - 400) * 0.25 + FRAC_BITS + 5) / IMDCT_SCALAR;
/* llrint() isn't always available, so round and cast manually. */
expval_table_fixed[exponent][value] = (long long int) (f >= 0 ? floor(f + 0.5) : ceil(f - 0.5));
expval_table_fixed[exponent][value] = (long long int) floor(f + 0.5);
expval_table_float[exponent][value] = f;
}
exp_table_fixed[exponent] = expval_table_fixed[exponent][1];


Loading…
Cancel
Save