mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-09 08:39:41 +00:00
avfilter/vf_lut3d: fix sanitizef INF handling
Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
parent
dd03d65540
commit
e366797ad3
@ -107,7 +107,7 @@ typedef struct ThreadData {
|
|||||||
|
|
||||||
#define EXPONENT_MASK 0x7F800000
|
#define EXPONENT_MASK 0x7F800000
|
||||||
#define MANTISSA_MASK 0x007FFFFF
|
#define MANTISSA_MASK 0x007FFFFF
|
||||||
#define SIGN_MASK 0x7FFFFFFF
|
#define SIGN_MASK 0x80000000
|
||||||
|
|
||||||
static inline float sanitizef(float f)
|
static inline float sanitizef(float f)
|
||||||
{
|
{
|
||||||
@ -120,7 +120,7 @@ static inline float sanitizef(float f)
|
|||||||
return 0.0f;
|
return 0.0f;
|
||||||
} else if (t.i & SIGN_MASK) {
|
} else if (t.i & SIGN_MASK) {
|
||||||
// -INF
|
// -INF
|
||||||
return FLT_MIN;
|
return -FLT_MAX;
|
||||||
} else {
|
} else {
|
||||||
// +INF
|
// +INF
|
||||||
return FLT_MAX;
|
return FLT_MAX;
|
||||||
|
Loading…
Reference in New Issue
Block a user