diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-10-24 01:18:37 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-10-24 01:18:37 +0200 |
commit | 2f31b73a11d676e3f7f66139ff5c745317e8f1a3 (patch) | |
tree | 465c7e35b4200dc44d531c80ea49bea5e5ccd6e8 /libavcodec | |
parent | fbdc98c758d5261d3328b53e29abeac033253358 (diff) | |
download | ffmpeg-streaming-2f31b73a11d676e3f7f66139ff5c745317e8f1a3.zip ffmpeg-streaming-2f31b73a11d676e3f7f66139ff5c745317e8f1a3.tar.gz |
avcodec/mpegaudio_tablegen: fix build with hardcoded tables
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/mpegaudio_tablegen.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpegaudio_tablegen.h b/libavcodec/mpegaudio_tablegen.h index 5592b4a..f9557c9 100644 --- a/libavcodec/mpegaudio_tablegen.h +++ b/libavcodec/mpegaudio_tablegen.h @@ -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) FFMIN(floor(f + 0.5), 0xFFFFFFFF); + expval_table_fixed[exponent][value] = (long long int) (f < 0xFFFFFFFF ? floor(f + 0.5) : 0xFFFFFFFF); expval_table_float[exponent][value] = f; } exp_table_fixed[exponent] = expval_table_fixed[exponent][1]; |