mathematics: Don't use division by zero in NAN/INFINITY macros
authorRonald S. Bultje <rsbultje@gmail.com>
Fri, 22 Jun 2012 10:05:21 +0000 (13:05 +0300)
committerMartin Storsjö <martin@martin.st>
Sun, 1 Jul 2012 16:06:13 +0000 (19:06 +0300)
commita1245d5ca1bed154a3bf38843b63018ae3544115
tree2ef57f9ac6df7f6e8e2511d2d5a62e720d9feb97
parent710bd8a33e9c183ded4a61d742d404d8d5d838ea
mathematics: Don't use division by zero in NAN/INFINITY macros

Some compilers, MSVC among them, don't recognize the divisions by
zero as meaning infinity/nan.

These macros should, according to the standard, expand to constant
expressions, but this shouldn't matter for our usage.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavutil/mathematics.h