summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* fate-als: add dependenciesMans Rullgard2012-10-18
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* fate: dependencies for demux testsMans Rullgard2012-10-18
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* fate: add a dependency helper macroMans Rullgard2012-10-18
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Add support for building shared libraries with MSVCMartin Storsjö2012-10-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This requires the makedef perl script by Derek, from the c89-to-c99 repo. That scripts produces a .def file, listing the symbols to be exported, based on the gcc version scripts and the built object files. To properly load non-function symbols from DLL files, the data symbol declarations need to have the attribute __declspec(dllimport) when building the calling code. (On mingw, the linker can fix this up automatically, which is why it has not been an issue so far. If this attribute is omitted, linking actually succeeds, but reads from the table will not produce the desired results at runtime.) MSVC seems to manage to link DLLs (and run properly) even if this attribute is present while building the library itself (which normally isn't recommended) - other object files in the same library manage to link to the symbol (with a small warning at link time, like "warning LNK4049: locally defined symbol _avpriv_mpa_bitrate_tab imported" - it doesn't seem to be possible to squelch this warning), and the definition of the tables themselves produce a warning that can be squelched ("warning C4273: 'avpriv_mpa_bitrate_tab' : inconsistent dll linkage, see previous definition of 'avpriv_mpa_bitrate_tab'). In this setup, mingw isn't able to link object files that refer to data symbols with __declspec(dllimport) without those symbols actually being linked via a DLL (linking avcodec.dll ends up with errors like "undefined reference to `__imp__avpriv_mpa_freq_tab'"). The dllimport declspec isn't needed at all in mingw, so we simply choose not to declare it for other compilers than MSVC that requires it. (If ICL support later requires it, the condition can be extended later to include both of them.) This also implies that code that is built to link to a certain library as a DLL can't link to the same library as a static library. Therefore, we only allow building either static or shared but not both at the same time. (That is, static libraries as such can be, and actually are, built - this is used for linking the test tools to internal symbols in the libraries - but e.g. libavformat built to link to libavcodec as a DLL cannot link statically to libavcodec.) Also, linking to DLLs is slightly different from linking to shared libraries on other platforms. DLLs use a thing called import libraries, which is basically a stub library allowing the linker to know which symbols exist in the DLL and what name the DLL will have at runtime. In mingw/gcc, the import library is usually named libfoo.dll.a, which goes next to a static library named libfoo.a. This allows gcc to pick the dynamic one, if available, from the normal -lfoo switches, just as it does for libfoo.a vs libfoo.so on Unix. On MSVC however, you need to literally specify the name of the import library instead of the static library. Signed-off-by: Martin Storsjö <martin@martin.st>
* avcodec: Rename avpriv_frame_rate_tab to ff_mpeg12_frame_rate_tabMartin Storsjö2012-10-18
| | | | | | | This table doesn't need to be shared with libavformat any longer. Add mpeg12 to the name to make it less ambiguous, while renaming it. Signed-off-by: Martin Storsjö <martin@martin.st>
* gxf: Add a local copy of the relevant parts of the frame rate tableMartin Storsjö2012-10-18
| | | | | | | | | | | | | This avoids having to share this table across the library boundaries. This shared table used to be problematic, if always declaring all exported data symbols with the dllimport attribute (even while building that same library), since it needs to be a link-time constant when it is used in AVCodec declarations (in mpeg12enc.c). Signed-off-by: Martin Storsjö <martin@martin.st>
* configure: Split out msvc as a separate target OSMartin Storsjö2012-10-18
| | | | | | | | | | The name mingw32 as target OS is both misleading, and very little of the target OS specific settings actually match. Since the target OS default is set based on uname, the default (which on MSYS is set to mingw) is overridden by --toolchain=msvc. Signed-off-by: Martin Storsjö <martin@martin.st>
* aviobuf: Remove a senseless ifdef in avio_seekMartin Storsjö2012-10-18
| | | | | | | | | This seemed to assume that one never used writing avio unless muxers or networking was enabled. This ifdef is a remnant since 8fa641f8. Signed-off-by: Martin Storsjö <martin@martin.st>
* mips64: mark hi/lo registers clobbered in MAC64/MLS64 macrosMans Rullgard2012-10-17
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* fate: list lavfi tests in a makefileMans Rullgard2012-10-17
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* fate: dependencies for seek testsMans Rullgard2012-10-17
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* fate: handle lavf test dependencies entirely in makeMans Rullgard2012-10-17
| | | | | | This makes the lavf tests depend on all codecs and formats they use. Signed-off-by: Mans Rullgard <mans@mansr.com>
* fate: dependencies for acodec testsMans Rullgard2012-10-17
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* fate: dependencies for vsynth testsMans Rullgard2012-10-17
| | | | | | | This makes the vsynth tests run only if the required codecs and formats are enabled. Signed-off-by: Mans Rullgard <mans@mansr.com>
* fate: add macros useful for conditionally enabling thingsMans Rullgard2012-10-17
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* libmp3lame: resize the output buffer if neededJustin Ruggles2012-10-17
| | | | | | | | | The LAME API documentation for the required buffer size refers to the size for a single encode call. However, we store multiple frames in the same output buffer but only read 1 frame at a time out of it. As a result, the buffer size given in lame_encode_buffer() is actually smaller than what it should be. Since we do not know how many frames it will end up buffering, it is best to just reallocate if needed.
* configure: Add support for Tilera processorsDerek Buitenhuis2012-10-16
| | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* wavdec: check size before reading the data, not after.Anton Khirnov2012-10-16
|
* wav: do not fail on empty INFO tagsAnton Khirnov2012-10-16
| | | | | | Fixes Bug 379 CC: libav-stable@libav.org
* lavf: split wav muxer and demuxer into separate files.Anton Khirnov2012-10-16
|
* wav muxer: write metadataVictor Vasiliev2012-10-16
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* riff: do not write empty INFO tagsVictor Vasiliev2012-10-16
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavf: move RIFF INFO tag writing from avienc to riffVictor Vasiliev2012-10-16
| | | | | | It will be useful in the wav muxer. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* avconv: fix disabling auto mappings with -map_metadataAnton Khirnov2012-10-16
| | | | CC: libav-stable@libav.org
* avcodec_encode_audio(): fix invalid freeRafaël Carré2012-10-16
| | | | | | | Since 2bc0de385, AVFrame needs to be initialized before calling avcodec_get_frame_defaults(). Signed-off-by: Anton Khirnov <anton@khirnov.net>
* pcm-mpeg: correct bitrate calculationChristian Schmidt2012-10-16
| | | | | | | | Bitrate calculation is off since the bluray spec always specifies an even number of coded channels. This was honored in the decoder, but not for bitrate calculation. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* ffv1: K&R formatting cosmeticsLuca Barbato2012-10-16
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* fate: Add rangecoder testDiego Biurrun2012-10-16
|
* network: #include stdint.h in network.hMans Rullgard2012-10-16
| | | | | | | This header uses various types provided by stdint.h without explicitly including it. Signed-off-by: Mans Rullgard <mans@mansr.com>
* nut: export codec_tag provided by rawvideoLuca Barbato2012-10-16
| | | | | | Raw audio does not provide valid audio tags while rawvideo does. The fate refs have to be updated because it undoes the previous tag change.
* avserver: move avserver-specific code from ffmdec.c to avserver.cMans Rullgard2012-10-16
| | | | | | | | This way avserver only depends on the data structures of the ffm demuxer, which it already does, and not also on private functions being exported by the library. Signed-off-by: Mans Rullgard <mans@mansr.com>
* build: simplify linking tools with cmdutils.oMans Rullgard2012-10-15
| | | | | | | This avoids repeating cmdutils.o in both the prerequisites and the link command. Signed-off-by: Mans Rullgard <mans@mansr.com>
* tiny_psnr: fix range calculation for sample size of 32 bitsMans Rullgard2012-10-15
| | | | | | | | | For a sample size of 32 bits, the shift would overflow producing undefined results. Incidentally, in the only test currently using 32-bit samples, the output matches the reference exactly on most systems meaning the bad 'max' value is never used. Signed-off-by: Mans Rullgard <mans@mansr.com>
* tiny_psnr: check for specified sample size less than 1Mans Rullgard2012-10-15
| | | | | | | A zero or negative sample size is impossible and should be reported as an error. Signed-off-by: Mans Rullgard <mans@mansr.com>
* fate: improve md5sum utility selectionMans Rullgard2012-10-15
| | | | | | | The 'md5sum' command is used with the -b flag so the presence test must also use this flag. Signed-off-by: Mans Rullgard <mans@mansr.com>
* rangecoder-test: Drop timer output that clutters stderrDiego Biurrun2012-10-15
|
* rangecoder-test: Return in case of an errorDiego Biurrun2012-10-15
|
* build: simplify enabling of compat objectsMans Rullgard2012-10-15
| | | | | | | | Add a configure function to pull in a compat object and set up redirects in one operation. This avoids duplicating conditions across configure and makefiles. Signed-off-by: Mans Rullgard <mans@mansr.com>
* configure: simplify argument handling in check_ldMans Rullgard2012-10-15
| | | | | | | Use the existing filter functions instead of open-coding the separation of general flags and libraries. Signed-off-by: Mans Rullgard <mans@mansr.com>
* configure: simplify get_version() functionMans Rullgard2012-10-15
| | | | | | awk alone can do this, no need for grep. Signed-off-by: Mans Rullgard <mans@mansr.com>
* build: support asan and tsan toolchain shortcutsLuca Barbato2012-10-15
|
* rmdec: Move SIPR code shared with Matroska demuxer to a separate fileDiego Biurrun2012-10-15
|
* swscale: try to use mmap only if availableMans Rullgard2012-10-15
| | | | | | | | | | | | Some systems, e.g. Minix, have sys/mman.h defining MAP_ANONYMOUS without providing (working) mmap and friends. The mmx filter generation code checks only for MAP_ANONYMOUS, not for availability of mmap itself which leads to build errors on aforementioned systems. This changes the conditional compilation to use mmap only if all the required functions are available. Signed-off-by: Mans Rullgard <mans@mansr.com>
* configure: check for mprotectMans Rullgard2012-10-15
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* wmapro: use planar sample formatJustin Ruggles2012-10-14
|
* wmalossless: output in planar sample formatJustin Ruggles2012-10-14
|
* wmadec: use float planar sample format outputJustin Ruggles2012-10-14
|
* shorten: use planar sample formatJustin Ruggles2012-10-14
|
* lavc: update documentation for AVFrame.extended_dataJustin Ruggles2012-10-14
|
* avutil: Do not make ff_ symbols globally visible.Diego Biurrun2012-10-13
|