diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-12-15 20:46:33 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-01-05 16:25:37 +0100 |
commit | 9a697cfe716e2ed5f5ba183910c104c5ad783256 (patch) | |
tree | 0806227179fce802dcf6ce3080459cf76dbe5f2e /libavutil/utils.c | |
parent | 305180f5259e1caf341b8d46ab28d20168ff98ef (diff) | |
download | ffmpeg-streaming-9a697cfe716e2ed5f5ba183910c104c5ad783256.zip ffmpeg-streaming-9a697cfe716e2ed5f5ba183910c104c5ad783256.tar.gz |
lavu: test for broken binutils on ARM
Some old gnu assemblers fail to assemble qdadd correctly
Ideally we should check this at build time, but better to
check at run time than mysteriously failing.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/utils.c')
-rw-r--r-- | libavutil/utils.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavutil/utils.c b/libavutil/utils.c index 01c940c..fbfbc49 100644 --- a/libavutil/utils.c +++ b/libavutil/utils.c @@ -35,6 +35,11 @@ unsigned avutil_version(void) av_assert0(LIBAVUTIL_VERSION_MICRO >= 100); av_assert0(HAVE_MMX2 == HAVE_MMXEXT); + if (av_sat_dadd32(1, 2) != 5) { + av_log(NULL, AV_LOG_FATAL, "Libavutil has been build with a broken binutils, please upgrade binutils and rebuild\n"); + abort(); + } + return LIBAVUTIL_VERSION_INT; } |