History

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.

Michael Niedermayer committed 13 years ago

Commit 9a697cf1 parent 305180f1 file · +5 −0Browse files

Showing the changes to libavutil/utils.c (1 of 1 file). Show all

Unified · Split

libavutil/utils.c+5−0
@@ -35,6 +35,11 @@ unsigned avutil_version(void) · 34 unmodified lines
35 av_assert0(LIBAVUTIL_VERSION_MICRO >= 100);35 av_assert0(LIBAVUTIL_VERSION_MICRO >= 100);
36 av_assert0(HAVE_MMX2 == HAVE_MMXEXT);36 av_assert0(HAVE_MMX2 == HAVE_MMXEXT);
37 37
38 if (av_sat_dadd32(1, 2) != 5) {
39 av_log(NULL, AV_LOG_FATAL, "Libavutil has been build with a broken binutils, please upgrade binutils and rebuild\n");
40 abort();
41 }
42
38 return LIBAVUTIL_VERSION_INT;43 return LIBAVUTIL_VERSION_INT;
39}44}
40 45

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t