You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avutil/tx: use llrintf() to convert a float into a 64 bit integer
Should fix fate failures on Windowx x86 targets, where long is 32 bits. Reviewed-by: Martin Storsjö <martin@martin.st> Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@@ -124,7 +124,7 @@ typedef void TXComplex;
|
|||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#define UNSCALE(x) ((double)(x)/2147483648.0)
|
#define UNSCALE(x) ((double)(x)/2147483648.0)
|
||||||
#define RESCALE(x) (av_clip64(lrintf((x) * 2147483648.0), INT32_MIN, INT32_MAX))
|
#define RESCALE(x) (av_clip64(llrintf((x) * 2147483648.0), INT32_MIN, INT32_MAX))
|
||||||
|
|
||||||
#define FOLD(x, y) ((int32_t)((x) + (unsigned)(y) + 32) >> 6)
|
#define FOLD(x, y) ((int32_t)((x) + (unsigned)(y) + 32) >> 6)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user