Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/compat
AgeCommit message (Collapse)Author
2014-03-10Work around broken floating point limits on some systems.Anton Khirnov
The values of {FLT,DBL}_{MAX,MIN} macros on some systems (older musl libc, some BSD flavours) are not exactly representable, i.e. (double)DBL_MAX == DBL_MAX is false This violates (at least some interpretations of) the C99 standard and breaks code (e.g. in vf_fps) like double f = DBL_MAX; [...] if (f == DBL_MAX) { // f has not been changed yet [....] }
2013-11-24build: Import makedef script from c99-to-c89Derek Buitenhuis
This allows MSVC 2013 and ICL to build with no external dependencies. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2013-11-07Remove #undefs for formerly forbidden system functionsDiego Biurrun
The macros forbidding the system functions no longer exist, obviating the need for the #undefs.
2013-08-28Revert "w32pthread: help compiler figure out undeeded code"Martin Storsjö
This reverts commit 4622f11f9c83db8a2e08408c71ff901826ca652c. The compiler should be able to do the dead code elimination now without this when the cond_* names point directly to the real functions instead of to local function pointers. Signed-off-by: Martin Storsjö <martin@martin.st>
2013-08-28w32threads: Don't use function pointers when linking directly to newer APIsMartin Storsjö
This reduces the call overhead slightly. More noticeably, it restores the earlier (unintended?) feature that condition variable functions work just fine even if w32thread_init() hasn't been called. This was broken as a side effect of 4622f11f9, if explicitly targeting Vista+. This makes w32threading work in VP8 again, if targeting Vista+. Signed-off-by: Martin Storsjö <martin@martin.st>
2013-08-21w32pthread: help compiler figure out undeeded codeRafaël Carré
The emulation code is not needed when targetting Vista+ This helps getting rid of CreateSemaphore symbol, which is forbidden in Windows Store apps. Signed-off-by: Martin Storsjö <martin@martin.st>
2013-07-18compat: Add missing license boilerplatesDiego Biurrun
2013-07-18Employ consistent LIBAV_COMPAT_ multiple inclusion guards in compat/Diego Biurrun
Also fix a comment and an #endif comment.
2013-07-04compat: wrap math.h to avoid AIX-specific clashesLuca Barbato
AIX defines a class() function in its math.h header without any guard.
2013-05-24w32pthreads: move from lavc to compat/Anton Khirnov
It will be used in other places than lavc.
2013-03-07Use the avstring.h locale-independent character type functionsReimar Döffinger
Make sure the behavior does not change with the locale. Signed-off-by: Martin Storsjö <martin@martin.st>
2012-10-23build: Plan 9 supportMans Rullgard
This adds support for building on Plan 9 x86-32. The compat/plan9 directory contains these items: - replacements for the 'head' and 'printf' shell commands - wrapper for main() to disable FPU exceptions Larger required changes to the system are described in the documentation. Signed-off-by: Mans Rullgard <mans@mansr.com>
2012-10-13build: tms470: work around glibc math.h problemsMans Rullgard
The glibc definitions of INFINITY and NAN do not work with the tms470 compiler, nor do our usual fallbacks. Signed-off-by: Mans Rullgard <mans@mansr.com>
2012-09-15compat/vsnprintf: return number of bytes required on truncation.Ronald S. Bultje
This conforms to C99, but requires Windows >= XP. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2012-09-05lavu: add snprintf(), vsnprint() and strtod() replacements for MS runtime.Ronald S. Bultje
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-08-17getopt: Remove an unnecessary defineMartin Storsjö
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-08-16getopt: Add missing includesMartin Storsjö
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-07-11dct/fft-test: use a replacement getopt() if the system has none present.Ronald S. Bultje
This allows compiling and running these tests on systems lacking a built- in version of getopt(), such as MSVC. Signed-off-by: Anton Khirnov <anton@khirnov.net>