summaryrefslogtreecommitdiffstats
path: root/compat
Commit message (Collapse)AuthorAgeFilesLines
* compat/w32pthreads: add return value to pthread_cond_init().Nicolas George2014-05-261-5/+6
|
* Merge remote-tracking branch 'qatar/master'Michael Niedermayer2014-03-102-0/+57
|\ | | | | | | | | | | | | * 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-102-0/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | 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-062-2/+4
| | | | | | | | | | | | 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-301-0/+3
| | | | | | | | | | | | | | 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-241-0/+132
|\ \ | |/ | | | | | | | | | | * 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-241-0/+132
| | | | | | | | | | | | | | 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-071-2/+0
|\ \ | |/ | | | | | | | | | | * 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-071-2/+0
| | | | | | | | | | The macros forbidding the system functions no longer exist, obviating the need for the #undefs.
* | Fix compilation with os2threadsDave Yeo2013-11-071-0/+2
| | | | | | | | | | Signed-off-by: Dave Yeo <daveryeo@telus.net> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'ef51692a49d58963966adca55c62da9c34c3c7e1'Michael Niedermayer2013-08-281-5/+5
|\ \ | |/ | | | | | | | | | | * 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-271-5/+5
| | | | | | | | | | | | | | | | | | | | 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-281-5/+7
|\ \ | |/ | | | | | | | | | | * 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-271-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | 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-221-5/+5
|\ \ | |/ | | | | | | | | | | * 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-211-5/+5
| | | | | | | | | | | | | | | | 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-171-0/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-192-2/+38
|\ \ | |/ | | | | | | | | | | | | | | | | * 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-182-2/+38
| |
* | Merge commit '439902e0d68a0f0d800c21b5e6b598d5fa0c51da'Michael Niedermayer2013-07-193-9/+13
|\ \ | |/ | | | | | | | | | | | | | | | | * 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-183-9/+13
| | | | | | | | Also fix a comment and an #endif comment.
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2013-07-051-0/+14
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | * qatar/master: compat: wrap math.h to avoid AIX-specific clashes Conflicts: configure See: bf18abb2eb79c00c69f6f83ede64536e3297793c, 0915b531bc62440914710d2989813563b0446c5e Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * compat: wrap math.h to avoid AIX-specific clashesLuca Barbato2013-07-041-0/+14
| | | | | | | | | | AIX defines a class() function in its math.h header without any guard.
* | os2threads: move from lavc to compat/Dave Yeo2013-05-281-0/+162
| | | | | | | | | | | | | | For useage in other places besides lavc. Needed after commit 90f9a5830b5d332de7ebb1ab45589f1870cbd65d Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '90f9a5830b5d332de7ebb1ab45589f1870cbd65d'Michael Niedermayer2013-05-241-0/+280
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | * commit '90f9a5830b5d332de7ebb1ab45589f1870cbd65d': w32pthreads: move from lavc to compat/ Conflicts: libavcodec/Makefile libavcodec/pthread.c libavcodec/vp8.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * w32pthreads: move from lavc to compat/Anton Khirnov2013-05-241-0/+279
| | | | | | | | It will be used in other places than lavc.
| * Use the avstring.h locale-independent character type functionsReimar Döffinger2013-03-071-2/+1
| | | | | | | | | | | | Make sure the behavior does not change with the locale. Signed-off-by: Martin Storsjö <martin@martin.st>
* | Provide local copies of AviSynth's and AvxSynth's requisite headers in ↵Stephen Hutchinson2013-03-214-0/+1768
| | | | | | | | | | | | | | compat/avisynth/. The versions of the headers are the same as those provided with x264 for consistency's sake.
* | compat/strtod: isspace -> av_isspace.Clément Bœsch2013-03-041-1/+1
| | | | | | | | This should fix build after 88d55b8.
* | Remove incorrect use of ctype.h functions.Reimar Döffinger2013-03-031-1/+0
| | | | | | | | | | | | | | 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>
* | Merge commit '0c03cc68386443f1e96ab6fb358220faf67cd5ff'Michael Niedermayer2012-10-243-0/+46
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | * 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>
| * build: Plan 9 supportMans Rullgard2012-10-233-0/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | compat/getopt: add {} to complex ifsMichael Niedermayer2012-10-211-1/+2
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-10-141-0/+7
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | * 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>
| * build: tms470: work around glibc math.h problemsMans Rullgard2012-10-131-0/+7
| | | | | | | | | | | | | | 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>
| * compat/vsnprintf: return number of bytes required on truncation.Ronald S. Bultje2012-09-151-3/+10
| | | | | | | | | | | | This conforms to C99, but requires Windows >= XP. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | MinGW: Use our snprintf/vsnprintf when MinGW's is brokenDerek Buitenhuis2012-09-252-0/+42
| | | | | | | | | | | | | | | | All versions of MinGW-w64 prior to version 3, as well as all versions of MinGW32 have broken implementations of vsnprintf. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | compat/vsnprintf: return number of bytes required on truncation.Ronald S. Bultje2012-09-151-3/+6
| | | | | | | | This conforms to C99, but requires Windows >= XP.
* | msvc: Add a va_copy compatability macro for msvcDerek Buitenhuis2012-09-152-0/+27
| | | | | | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-09-062-0/+157
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: fate: Allow setting the ld parameter from the config file x86: dsputil: Do not redundantly check for CPU caps before calling init funcs configure: Disable some warnings in MSVC x86: vp56: cmov version of vp56_rac_get_prob requires inline asm avopt: fix examples to match the same style about default values as the actual code. configure: Add support for MSVC cl.exe/link.exe lavu: add snprintf(), vsnprint() and strtod() replacements for MS runtime. Conflicts: libavutil/opt.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavu: add snprintf(), vsnprint() and strtod() replacements for MS runtime.Ronald S. Bultje2012-09-052-0/+157
| | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* | Revert "lavu: add snprintf(), vsnprint() and strtod() replacements for MS ↵Michael Niedermayer2012-09-064-239/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | runtime." This reverts commit ba537202801d71711f1ef9306a6248dd2d426fa0. A better implementation has been commited by the same author to qatar Conflicts: configure Found-by: jamal <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavu: add snprintf(), vsnprint() and strtod() replacements for MS runtime.Ronald S. Bultje2012-08-284-0/+239
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-08-171-1/+2
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: libvpxenc: use the default bitrate if not set utvideo: Rename utvideo.c to utvideodec.c doc: Fix syntax errors in sample Emacs config mjpegdec: more meaningful return values configure: clean up Altivec detection getopt: Remove an unnecessary define rtmp: Use int instead of ssize_t getopt: Add missing includes rtmp: Add support for receiving incoming streams Add missing includes for code relying on external libraries Conflicts: libavcodec/libopenjpegenc.c libavcodec/libvpxenc.c libavcodec/mjpegdec.c libavformat/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * getopt: Remove an unnecessary defineMartin Storsjö2012-08-161-2/+0
| | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>
| * getopt: Add missing includesMartin Storsjö2012-08-161-0/+3
| | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-07-121-4/+4
|/ | | | | | | | | | | | | | | | | | | | | * qatar/master: build: Fix Ogg demuxer dependencies build: Fix FLAC demuxer dependencies flac: Move flac functions shared between libraries to flac common code build: Fix CAF demuxer dependencies build: Fix MP2 muxer dependencies build: Add missing build rules for the ISMV muxer configure: Drop redundant mxf_d10 test dependency declaration Support AAC encoding via the external library fdk-aac libavcodec: Add more AAC profiles dct/fft-test: use a replacement getopt() if the system has none present. Conflicts: Changelog libavcodec/Makefile libavcodec/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
* dct/fft-test: use a replacement getopt() if the system has none present.Ronald S. Bultje2012-07-111-0/+84
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>
OpenPOWER on IntegriCloud