OSDN Git Service

Make tables generation insensitive to floating-point implementation
authorVitor Sessak <vitor1001@gmail.com>
Sat, 12 Feb 2011 09:15:58 +0000 (10:15 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 12 Feb 2011 23:54:06 +0000 (00:54 +0100)
commit0a18b64585ca3f9181229dcc4ccb62bc6b939679
treeb83a6490320bfbdd132d17610cc3caed98bc0bdf
parentc906d974b7c3288bc25a1db87acd7129bcc5cd04
Make tables generation insensitive to floating-point implementation

Using doubles make the double -> int cast well defined for all the values
used, with the exception of when s[i]==1.0, which is special-cased.

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 47d62c965b7bcf4715127fbf9bffab7b4c5c88b7)
libavcodec/bink.c