aboutsummaryrefslogtreecommitdiff
path: root/compat
AgeCommit message (Collapse)Author
2015-07-24use a wrapper script to call MS link.exe to avoid mixing with /usr/bin/link.exeSteve Lhomme
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>
2015-06-02compat/os2threads: Check av_malloc() return codeMichael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2015-03-25avisynth: drop support of AviSynth 2.5Stephen Hutchinson
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>
2015-03-25avisynth: ifdef to avoid implicit function declaration errorsStephen Hutchinson
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>
2015-03-25avisynth: update headers against AviSynth+Stephen Hutchinson
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2015-02-18compat/avisynth/windowsPorts/windows2linux: Add () to protect macro argumentsMichael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-12-11compat/avisynth/avxsynth_c: Clear all unused fields in returned structsMichael Niedermayer
Fixes: CID1257658 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-10-09compat/w32pthreads: use the condition variable API directly when targeting ↵James Almer
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>
2014-10-09compat/w32pthreads: use the CONDITION_VARIABLE typedef if availableJames Almer
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>
2014-08-15Merge commit 'f929ab0569ff31ed5a59b0b0adb7ce09df3fca39'Michael Niedermayer
* 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>
2014-08-15Merge commit '6baeadd11083774ebd823dd5e1a744c2150a3bfc'Michael Niedermayer
* commit '6baeadd11083774ebd823dd5e1a744c2150a3bfc': w32pthreads: Mark functions in compatibility wrapper as av_unused Conflicts: compat/w32pthreads.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
2014-08-15cosmetics: Write NULL pointer equality checks more compactlyGabriel Dume
Signed-off-by: Diego Biurrun <diego@biurrun.de>
2014-08-15w32pthreads: Mark functions in compatibility wrapper as av_unusedDiego Biurrun
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.
2014-08-13Merge commit '428b0578c64241fc677fed7083cc8fe65e10f32e'Michael Niedermayer
* commit '428b0578c64241fc677fed7083cc8fe65e10f32e': w32threads: Use newer thread synchronization functions when targeting Vista Merged-by: Michael Niedermayer <michaelni@gmx.at>
2014-08-13w32threads: Use newer thread synchronization functions when targeting VistaMartin Storsjö
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>
2014-05-26compat/w32pthreads: add return value to pthread_cond_init().Nicolas George
2014-03-10Merge remote-tracking branch 'qatar/master'Michael Niedermayer
* qatar/master: Work around broken floating point limits on some systems. Merged-by: Michael Niedermayer <michaelni@gmx.at>
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 [....] }
2014-03-06Correct the FSF address for two avisynth files to '51 Franklin Street, Fifth ↵Andreas Cadhalpun
Floor, Boston, MA 02110-1301 USA' Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-12-30compat: provide va_copy for old gcc versions.Reimar Döffinger
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>
2013-11-24Merge remote-tracking branch 'qatar/master'Michael Niedermayer
* qatar/master: build: Import makedef script from c99-to-c89 Merged-by: Michael Niedermayer <michaelni@gmx.at>
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-07Merge remote-tracking branch 'qatar/master'Michael Niedermayer
* qatar/master: Remove #undefs for formerly forbidden system functions Merged-by: Michael Niedermayer <michaelni@gmx.at>
2013-11-07Fix compilation with os2threadsDave Yeo
Signed-off-by: Dave Yeo <daveryeo@telus.net> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
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-28Merge commit 'ef51692a49d58963966adca55c62da9c34c3c7e1'Michael Niedermayer
* commit 'ef51692a49d58963966adca55c62da9c34c3c7e1': Revert "w32pthread: help compiler figure out undeeded code" Merged-by: Michael Niedermayer <michaelni@gmx.at>
2013-08-28Merge commit '4332bf98dc051fd1ffbd9d4ddc1c5e55790c96f1'Michael Niedermayer
* commit '4332bf98dc051fd1ffbd9d4ddc1c5e55790c96f1': w32threads: Don't use function pointers when linking directly to newer APIs Merged-by: Michael Niedermayer <michaelni@gmx.at>
2013-08-27Revert "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-27w32threads: 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-22Merge commit '4622f11f9c83db8a2e08408c71ff901826ca652c'Michael Niedermayer
* commit '4622f11f9c83db8a2e08408c71ff901826ca652c': w32pthread: help compiler figure out undeeded code Merged-by: Michael Niedermayer <michaelni@gmx.at>
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-08-17avisynth: Support video input from AviSynth 2.5 properly.Stephen Hutchinson
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>
2013-07-19Merge remote-tracking branch 'qatar/master'Michael Niedermayer
* qatar/master: compat: Add missing license boilerplates Conflicts: compat/tms470/math.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
2013-07-19Merge commit '439902e0d68a0f0d800c21b5e6b598d5fa0c51da'Michael Niedermayer
* commit '439902e0d68a0f0d800c21b5e6b598d5fa0c51da': Employ consistent LIBAV_COMPAT_ multiple inclusion guards in compat/ Conflicts: compat/aix/math.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
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-05Merge remote-tracking branch 'qatar/master'Michael Niedermayer
* qatar/master: compat: wrap math.h to avoid AIX-specific clashes Conflicts: configure See: bf18abb2eb79c00c69f6f83ede64536e3297793c, 0915b531bc62440914710d2989813563b0446c5e Merged-by: Michael Niedermayer <michaelni@gmx.at>
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-28os2threads: move from lavc to compat/Dave Yeo
For useage in other places besides lavc. Needed after commit 90f9a5830b5d332de7ebb1ab45589f1870cbd65d Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-05-24Merge commit '90f9a5830b5d332de7ebb1ab45589f1870cbd65d'Michael Niedermayer
* commit '90f9a5830b5d332de7ebb1ab45589f1870cbd65d': w32pthreads: move from lavc to compat/ Conflicts: libavcodec/Makefile libavcodec/pthread.c libavcodec/vp8.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
2013-05-24w32pthreads: move from lavc to compat/Anton Khirnov
It will be used in other places than lavc.
2013-03-21Provide local copies of AviSynth's and AvxSynth's requisite headers in ↵Stephen Hutchinson
compat/avisynth/. The versions of the headers are the same as those provided with x264 for consistency's sake.
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>
2013-03-04compat/strtod: isspace -> av_isspace.Clément Bœsch
This should fix build after 88d55b8.
2013-03-03Remove incorrect use of ctype.h functions.Reimar Döffinger
As far as I can tell the code should not change behaviour depending on locale in any of these places. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
2012-10-24Merge commit '0c03cc68386443f1e96ab6fb358220faf67cd5ff'Michael Niedermayer
* commit '0c03cc68386443f1e96ab6fb358220faf67cd5ff': mp3: exit on parsing error in mp_decode_frame rtmppkt: Avoid unescaped backslash in Doxygen comment fate-lavfi: replace sed/grep/cut combos with awk build: Plan 9 support Conflicts: configure tests/lavfi-regression.sh Merged-by: Michael Niedermayer <michaelni@gmx.at>
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-21compat/getopt: add {} to complex ifsMichael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2012-10-14Merge remote-tracking branch 'qatar/master'Michael Niedermayer
* qatar/master: avutil: Do not make ff_ symbols globally visible. avutil: Rename ff_set_systematic_pal2() ---> avpriv_set_systematic_pal2() build: tms470: work around glibc math.h problems configure: improve tms470 compiler usage with glibc Conflicts: libavcodec/bmpenc.c libavcodec/rawdec.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
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>