diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-06-07 02:25:34 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-06-15 11:22:22 +0200 |
commit | 1ba196a10d1d0bddc2fd7774dd7b95716bbdb7bf (patch) | |
tree | af403be66c60dfeadcb5ce4114c273f2efcf14e0 /libavutil/utils.c | |
parent | c4f932f4d7450fb68bbc104b07d90896b37e9e92 (diff) | |
download | ffmpeg-1ba196a10d1d0bddc2fd7774dd7b95716bbdb7bf.tar.gz |
avutil/utils: check and warn about llrint() brokenness
Such broken llrint() exist for example on netbsd
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/utils.c')
-rw-r--r-- | libavutil/utils.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavutil/utils.c b/libavutil/utils.c index c157aa8e34..2159d1c6f5 100644 --- a/libavutil/utils.c +++ b/libavutil/utils.c @@ -45,6 +45,10 @@ unsigned avutil_version(void) abort(); } + if (llrint(1LL<<60) != 1LL<<60) { + av_log(NULL, AV_LOG_ERROR, "Libavutil has been linked to a broken llrint()\n"); + } + ff_check_pixfmt_descriptors(); checks_done = 1; return LIBAVUTIL_VERSION_INT; |