summaryrefslogtreecommitdiff
path: root/compat
Commit message (Collapse)AuthorAge
...
| * w32pthreads: fix mingw build on x86 with -msse2 or higherHendrik Leppkes2015-10-16
| | | | | | | | | | | | | | | | When SSE2 or higher compiler optimizations are used, mingw uses the _mm_mfence intrinsic for MemoryBarrier, however it doesn't include the appropriate headers automatically. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | compat/solaris/make_sunver.pl: Use /usr/bin/env perl instead of /usr/bin/perlMichael Niedermayer2015-10-20
| | | | | | | | | | | | | | This is how the other perl scripts in git call perl Reviewed-by: Ganesh Ajjanagadde <gajjanag@mit.edu> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | w32pthreads: fix mingw build on x86 with -msse2 or higherHendrik Leppkes2015-10-16
| | | | | | | | | | | | When SSE2 or higher compiler optimizations are used, mingw uses the _mm_mfence intrinsic for MemoryBarrier, however it doesn't include the appropriate headers automatically.
* | winrt: multithreading supportwang-bin2015-10-16
| | | | | | | | | | | | _beginthreadex is for desktop only. CreateThread is available for windows store apps on windows (and phone) 8.1 and later. http://msdn.microsoft.com/en-us/library/ms682453%28VS.85%29.aspx Signed-off-by: Matt Oliver <protogonoi@gmail.com>
* | Merge commit 'c1aac39eaccd32dc3b74ccfcce701d3d888fbc6b'Hendrik Leppkes2015-10-14
|\| | | | | | | | | | | | | * commit 'c1aac39eaccd32dc3b74ccfcce701d3d888fbc6b': build: add Solaris symbol versioning Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * build: add Solaris symbol versioningSean McGovern2015-10-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The versioning facility in the Solaris linker differs from Linux in 3 ways: 1. It does not support globs in linker scripts for symbol versioning -- this is a GNU extension. 2. The linker argument is '-M', instead of '--version-script'. 3. It is picky about line endings. Each symbol or directive must be on a line of it's own. Let's use make_sunver.pl from GCC to generate a version script that works correctly with the Solaris linker. It's function is to correctly expand the globs in the original generated version script. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | Merge commit '2830bce47e2eb29c76202f19017031ddc1f95dd3'Hendrik Leppkes2015-10-10
|\| | | | | | | | | | | | | * commit '2830bce47e2eb29c76202f19017031ddc1f95dd3': w32pthreads: Load dynamically loaded functions on demand Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * w32pthreads: Load dynamically loaded functions on demandHendrik Leppkes2015-10-07
| | | | | | | | | | | | | | This removes the requirement of calling w32thread_init before being able to use the threading primitives. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | Merge commit 'b22693b06d1e5d73454a65c203b4d31c1ca5b69a'Hendrik Leppkes2015-10-10
|\| | | | | | | | | | | | | * commit 'b22693b06d1e5d73454a65c203b4d31c1ca5b69a': w32pthreads: Add pthread_once emulation Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * w32pthreads: Add pthread_once emulationHendrik Leppkes2015-10-07
| | | | | | | | | | | | | | | | The emulation uses native InitOnce* APIs on Windows Vista+, and a lock-free/allocation-free approach using atomics and spinning for Windows XP. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
| * use a wrapper script to call MS link.exe to avoid mixing with /usr/bin/link.exeSteve Lhomme2015-07-24
| | | | | | | | | | | | Fallback to "link" in the path if the one next to cl is not found. Signed-off-by: Martin Storsjö <martin@martin.st>
| * w32pthreads: use the condition variable API directly when targeting newer ↵James Almer2014-10-10
| | | | | | | | | | | | | | | | | | | | versions of Windows Wrap the function calls in a similar fashion to how it's being done with the critical section API. Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Martin Storsjö <martin@martin.st>
| * w32pthreads: use the CONDITION_VARIABLE typedef if availableJames Almer2014-10-10
| | | | | | | | | | | | | | | | This silences warnings about passing arguments from incompatible pointer type when targeting Windows Vista or newer. Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Martin Storsjö <martin@martin.st>
* | compat/w32pthreads: Add return values to match the simulated pthread functions.Matt Oliver2015-09-30
| |
* | use a wrapper script to call MS link.exe to avoid mixing with /usr/bin/link.exeSteve Lhomme2015-07-24
| | | | | | | | | | | | | | favor link over link.exe in case some wrapper script already exists fallback to "link" in the path if the one next to cl is not found Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | compat/os2threads: Check av_malloc() return codeMichael Niedermayer2015-06-02
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avisynth: drop support of AviSynth 2.5Stephen Hutchinson2015-03-25
| | | | | | | | | | | | | | If the user attempts to use AviSynth 2.5, an error message will now tell them they need to upgrade. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avisynth: ifdef to avoid implicit function declaration errorsStephen Hutchinson2015-03-25
| | | | | | | | | | | | | | | | The demuxer doesn't use these functions, so it shouldn't affect anything. Investigate whether this can be fixed by how headers are checked in configure. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avisynth: update headers against AviSynth+Stephen Hutchinson2015-03-25
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | compat/avisynth/windowsPorts/windows2linux: Add () to protect macro argumentsMichael Niedermayer2015-02-18
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | compat/avisynth/avxsynth_c: Clear all unused fields in returned structsMichael Niedermayer2014-12-11
| | | | | | | | | | | | Fixes: CID1257658 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | compat/w32pthreads: use the condition variable API directly when targeting ↵James Almer2014-10-09
| | | | | | | | | | | | | | | | | | | | newer versions of Windows Wrap the function calls in a similar fashion to how it's being done with the critical section API. Reviewed-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: James Almer <jamrial@gmail.com>
* | compat/w32pthreads: use the CONDITION_VARIABLE typedef if availableJames Almer2014-10-09
| | | | | | | | | | | | | | | | | | This silences warnings about passing arguments from incompatible pointer type when targeting Windows Vista or newer. Tested-by: Matt Oliver <protogonoi@gmail.com> Reviewed-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: James Almer <jamrial@gmail.com>
* | Merge commit 'f929ab0569ff31ed5a59b0b0adb7ce09df3fca39'Michael Niedermayer2014-08-15
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'f929ab0569ff31ed5a59b0b0adb7ce09df3fca39': cosmetics: Write NULL pointer equality checks more compactly Conflicts: cmdutils.c ffmpeg_opt.c ffplay.c libavcodec/dvbsub.c libavcodec/dvdsubdec.c libavcodec/dvdsubenc.c libavcodec/dxa.c libavcodec/libxvid_rc.c libavcodec/mpegvideo.c libavcodec/mpegvideo_enc.c libavcodec/rv10.c libavcodec/tiffenc.c libavcodec/utils.c libavcodec/vc1dec.c libavcodec/zmbv.c libavdevice/v4l2.c libavformat/matroskadec.c libavformat/movenc.c libavformat/sdp.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * cosmetics: Write NULL pointer equality checks more compactlyGabriel Dume2014-08-15
| | | | | | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* | Merge commit '6baeadd11083774ebd823dd5e1a744c2150a3bfc'Michael Niedermayer2014-08-15
|\| | | | | | | | | | | | | | | | | | | * commit '6baeadd11083774ebd823dd5e1a744c2150a3bfc': w32pthreads: Mark functions in compatibility wrapper as av_unused Conflicts: compat/w32pthreads.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * w32pthreads: Mark functions in compatibility wrapper as av_unusedDiego Biurrun2014-08-15
| | | | | | | | | | | | This avoids annoying warnings about unused functions. The compatibility wrapper is designed to provide a complete (stub) API, so some functions being unused by some files is natural and no reason for a warning.
* | Merge commit '428b0578c64241fc677fed7083cc8fe65e10f32e'Michael Niedermayer2014-08-13
|\| | | | | | | | | | | | | * commit '428b0578c64241fc677fed7083cc8fe65e10f32e': w32threads: Use newer thread synchronization functions when targeting Vista Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * w32threads: Use newer thread synchronization functions when targeting VistaMartin Storsjö2014-08-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When explicitly targeting Vista or newer (which only happens if the caller explicitly sets _WIN32_WINNT to a high enough value via the extra cflags option - otherwise configure script sets -D_WIN32_WINNT=0x0502), we already unconditionally link to the ConditionVariable functions, since 4622f11f9. Similarly use the newer -Ex versions of CreateEvent, CreateSemaphore, InitializeCriticalSection and WaitForSingleObject, that all appeared in Vista. When building Windows Store applications, the older versions of these functions aren't available, only the -Ex functions. When doing such a build, the user can set -D_WIN32_WINNT=0x0600 to forcibly use the newer functions instead. Signed-off-by: Martin Storsjö <martin@martin.st>
* | compat/w32pthreads: add return value to pthread_cond_init().Nicolas George2014-05-26
| |
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2014-03-10
|\| | | | | | | | | | | | | * qatar/master: Work around broken floating point limits on some systems. Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Work around broken floating point limits on some systems.Anton Khirnov2014-03-10
| | | | | | | | | | | | | | | | | | | | | | | | | | 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 [....] }
* | Correct the FSF address for two avisynth files to '51 Franklin Street, Fifth ↵Andreas Cadhalpun2014-03-06
| | | | | | | | | | | | Floor, Boston, MA 02110-1301 USA' Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | compat: provide va_copy for old gcc versions.Reimar Döffinger2013-12-30
| | | | | | | | | | | | | | Since we have this compat/va_copy.h header already we might just as well make use of it for more than one compiler. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2013-11-24
|\| | | | | | | | | | | | | * qatar/master: build: Import makedef script from c99-to-c89 Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * build: Import makedef script from c99-to-c89Derek Buitenhuis2013-11-24
| | | | | | | | | | | | | | This allows MSVC 2013 and ICL to build with no external dependencies. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2013-11-07
|\| | | | | | | | | | | | | * qatar/master: Remove #undefs for formerly forbidden system functions Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Remove #undefs for formerly forbidden system functionsDiego Biurrun2013-11-07
| | | | | | | | | | The macros forbidding the system functions no longer exist, obviating the need for the #undefs.
* | Fix compilation with os2threadsDave Yeo2013-11-07
| | | | | | | | | | Signed-off-by: Dave Yeo <daveryeo@telus.net> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'ef51692a49d58963966adca55c62da9c34c3c7e1'Michael Niedermayer2013-08-28
|\| | | | | | | | | | | | | * commit 'ef51692a49d58963966adca55c62da9c34c3c7e1': Revert "w32pthread: help compiler figure out undeeded code" Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Revert "w32pthread: help compiler figure out undeeded code"Martin Storsjö2013-08-27
| | | | | | | | | | | | | | | | | | | | 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>
* | Merge commit '4332bf98dc051fd1ffbd9d4ddc1c5e55790c96f1'Michael Niedermayer2013-08-28
|\| | | | | | | | | | | | | * commit '4332bf98dc051fd1ffbd9d4ddc1c5e55790c96f1': w32threads: Don't use function pointers when linking directly to newer APIs Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * w32threads: Don't use function pointers when linking directly to newer APIsMartin Storsjö2013-08-27
| | | | | | | | | | | | | | | | | | | | | | | | 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>
* | Merge commit '4622f11f9c83db8a2e08408c71ff901826ca652c'Michael Niedermayer2013-08-22
|\| | | | | | | | | | | | | * commit '4622f11f9c83db8a2e08408c71ff901826ca652c': w32pthread: help compiler figure out undeeded code Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * w32pthread: help compiler figure out undeeded codeRafaël Carré2013-08-21
| | | | | | | | | | | | | | | | 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>
* | avisynth: Support video input from AviSynth 2.5 properly.Stephen Hutchinson2013-08-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Uses the 2.5 compatibility header included with the variant of FFMS2 that uses AviSynth's C-interface. A copy of this header is now provided in compat/avisynth. avs_get_row_size_p and avs_get_height_p changed between versions 2.5 and 2.6. Since the avisynth_c.h header that avformat uses assumes AviSynth 2.6, it would cause 2.5 to crash if given any kind of real video (the Version() function was known to work, though). AvxSynth was unaffected by this issue because, despite being based on AviSynth 2.5.8 and using 2.5.8's interface version number of 3, it actually uses 2.6's versions of these functions. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2013-07-19
|\| | | | | | | | | | | | | | | | | | | * qatar/master: compat: Add missing license boilerplates Conflicts: compat/tms470/math.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * compat: Add missing license boilerplatesDiego Biurrun2013-07-18
| |
* | Merge commit '439902e0d68a0f0d800c21b5e6b598d5fa0c51da'Michael Niedermayer2013-07-19
|\| | | | | | | | | | | | | | | | | | | * commit '439902e0d68a0f0d800c21b5e6b598d5fa0c51da': Employ consistent LIBAV_COMPAT_ multiple inclusion guards in compat/ Conflicts: compat/aix/math.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Employ consistent LIBAV_COMPAT_ multiple inclusion guards in compat/Diego Biurrun2013-07-18
| | | | | | | | Also fix a comment and an #endif comment.