summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* bktr: Changed a missed occurrance of open into avpriv_openMartin Storsjö2013-08-10
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* libavutil: Enable the MSVC DLL symbol loading workaround in shared builds as ↵Martin Storsjö2013-08-10
| | | | | | | | | | | | | | | well This used to only be necessary in static builds (when using the dynamically linked C runtime), since the _imp prefixed symbols do exist when linking to the actual DLL. When building testprogs, however, the current library (e.g. libavutil for some of the testprogs) is linked statically. This fixes make fate on DLL builds when using the dynamically linked C runtime. Signed-off-by: Martin Storsjö <martin@martin.st>
* ff_socket: put out-of-line and fallback to fcntl() for close-on-execRémi Denis-Courmont2013-08-09
| | | | | | | This supports non-Linux systems (SOCK_CLOEXEC is non-standard) and older Linux kernels to the extent possible. Signed-off-by: Martin Storsjö <martin@martin.st>
* FATE: add a TAK testAnton Khirnov2013-08-08
|
* file: Move win32 utf8->wchar open wrapper to libavutilMartin Storsjö2013-08-08
| | | | | | | | | | | | | When libavformat was changed to use the new avpriv_open function in 51eb213d001, this silently bypassed the existing wrapper for win32. Move the win32 wrapper into libavutil/file.c to make sure it gets called everywhere (not just in the libavformat case). This makes sure that non-ascii file names gets opened properly (where file names internally are stored as utf8, but they get converted to wchar_t and opened with _wsopen). Signed-off-by: Martin Storsjö <martin@martin.st>
* arm: Add assembly version of h264_find_start_code_candidateBen Avison2013-08-08
| | | | | | | | | | | | | | Before After Mean StdDev Mean StdDev Change This function 508.8 23.4 185.4 9.0 +174.4% Overall 3068.5 31.7 2752.1 29.4 +11.5% In combination with the preceding patch: Before After Mean StdDev Mean StdDev Change Overall 2925.6 26.2 2752.1 29.4 +6.3% Signed-off-by: Martin Storsjö <martin@martin.st>
* h264dsp: Factorize code into a new function, h264_find_start_code_candidateBen Avison2013-08-08
| | | | | | | | | | | | | | | This performs the start code search which was previously part of h264_find_frame_end() - the most CPU intensive part of the function. By itself, this results in a performance regression: Before After Mean StdDev Mean StdDev Change Overall time 2925.6 26.2 3068.5 31.7 -4.7% but this can more than be made up for by platform-optimised implementations of the function. Signed-off-by: Martin Storsjö <martin@martin.st>
* h264_parser: Initialize the h264dsp context in the parser as wellBen Avison2013-08-08
| | | | | | | | | | | | | | | Each AVStream struct for an H.264 elementary stream actually has two copies of the H264DSPContext struct (and in fact all the other members of H264Context as well): ((H264Context *) ((AVStream *)st)->codec->priv_data)->h264dsp ((H264Context *) ((AVStream *)st)->parser->priv_data)->h264dsp but only the first of these was actually being initialised. This prevented the addition of platform-specific implementations of parser-related functions. Signed-off-by: Martin Storsjö <martin@martin.st>
* Voxware MetaSound decoderKostya Shishkov2013-08-08
|
* avio: Add const qualifiers to ffio_read_indirectBen Avison2013-08-08
| | | | | | | This provides at least some protection against potential accidental corruption of AVIO buffer workspace. Signed-off-by: Martin Storsjö <martin@martin.st>
* libavutil: Don't use fcntl if the function does not existDerek Buitenhuis2013-08-08
| | | | | | | Not all platforms have the function. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Martin Storsjö <martin@martin.st>
* cmdutils: Only do the windows-specific commandline parsing on _WIN32Diogo Franco2013-08-08
| | | | | | | | | | | | | Fixes commandline parsing on Cygwin (on 64 bit, and on very recent 32 bit), where the configure check does find the CommandLineToArgvW function (since it exists in the link libraries and in the headers), but whose GetCommandLineW() only returns the application's path. (This is due to a cygwin internal optimization, see http://cygwin.com/ml/cygwin/2013-07/msg00538.html for details.) Arguments are only given through main's argc/argv, and they're already UTF-8. Signed-off-by: Martin Storsjö <martin@martin.st>
* libavformat: use avpriv_open()Rémi Denis-Courmont2013-08-07
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* libavdevice: use avpriv_open()Rémi Denis-Courmont2013-08-07
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* libavcodec: use avpriv_open()Rémi Denis-Courmont2013-08-07
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* libavutil: use avpriv_open()Rémi Denis-Courmont2013-08-07
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* libavutil: add avpriv_open() to open files with close-on-exec flagRémi Denis-Courmont2013-08-07
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* mpegvideo_enc: drop outdated copy_picture_attributes() in favour of a modern ↵Vittorio Giovara2013-08-07
| | | | | | av_frame_copy_props() Signed-off-by: Anton Khirnov <anton@khirnov.net>
* rtsp: Don't include the listen flag in the SDP demuxer flagsMartin Storsjö2013-08-07
| | | | | | | It's only relevant for the RTSP demuxer. Similarly, the custom_io flag is only present in the SDP demuxer options list. Signed-off-by: Martin Storsjö <martin@martin.st>
* deprecate AV_CODEC_ID_VOXWARE and introduce AV_CODEC_ID_METASOUND insteadKostya Shishkov2013-08-07
| | | | | Voxware is the name of company, it has produced several audio codecs e.g. MetaVoice family and MetaSound.
* rtpenc_chain: Check for errors from ffio_fdopen and ffio_open_dyn_packet_bufMartin Storsjö2013-08-07
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtspenc: Check the return value from ffio_open_dyn_packet_bufMartin Storsjö2013-08-07
| | | | | | | Also clear the AVIOContext handle after freeing, to avoid possible dangling pointers if the later call fails. Signed-off-by: Martin Storsjö <martin@martin.st>
* pcm_bluray: Return AVERROR_INVALIDDATA instead of -1 on header errorsChristian Schmidt2013-08-06
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* configure: Properly split dv1394 indev dependenciesDiego Biurrun2013-08-06
|
* configure: Properly set zlib dependencies for all componentsDiego Biurrun2013-08-06
|
* configure: The W64 demuxer should select the WAV demuxer, not depend on itDiego Biurrun2013-08-06
|
* configure: Properly split avserver component and system dependenciesDiego Biurrun2013-08-06
|
* riff: Move demuxing code to a separate file.Diego Biurrun2013-08-06
|
* riff: Move muxing code to a separate fileDiego Biurrun2013-08-06
|
* avformat/dv: K&R formatting cosmeticsDiego Biurrun2013-08-06
|
* tcp: Use a different log message and level if there's more addresses to tryMartin Storsjö2013-08-06
| | | | | | | | | This lowers the level of warnings printed if trying to connect to a host name that provides both v6 and v4 addresses but the service only is available on the v4 address (often occurring for 'localhost', with servers that aren't v6-aware). Signed-off-by: Martin Storsjö <martin@martin.st>
* unix: Convert from AVERROR to errno range before comparing error codesMartin Storsjö2013-08-06
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* avcodec/options: Drop deprecation warning suppression macrosDiego Biurrun2013-08-06
| | | | | | The options table is used in tools built by the host compiler and the deprecation macros pull in bits that are not safe to use if host and target compiler differ.
* riff.h: Remove stray extern declaration for non-existing symbolDiego Biurrun2013-08-05
|
* twinvq: Split VQF-specific part from common TwinVQ decoder coreKostya Shishkov2013-08-05
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* twinvq: Prefix enums and defines shared with VoxWare MetaSoundDiego Biurrun2013-08-05
|
* twinvq: move all bitstream reading into single placeKostya Shishkov2013-08-05
| | | | | | | | This is required for the future addition of VoxWare MetaSound decoder, for its functions are mostly the same but bitstream reader is completely different and bitstream format is slightly different too. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* mpegts: Remove one 64-bit integer modulus operation per packetBen Avison2013-08-05
| | | | | | | | | | | | | The common case of the pointer having increased by one packet (which results in no change to the modulus) can be detected with a 64-bit subtraction, which is far cheaper than a division on many platforms. Before After Mean StdDev Mean StdDev Change Divisions 248.3 8.8 51.5 7.4 +381.7% Overall 2773.2 25.6 2372.5 43.1 +16.9% Signed-off-by: Martin Storsjö <martin@martin.st>
* vc1: check mb_height validity.Luca Barbato2013-08-05
| | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* vc1: check the source buffer in vc1_mc functionsLuca Barbato2013-08-05
| | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* bink: Bound check the quantization matrix.Luca Barbato2013-08-05
| | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* network: Use SOCK_CLOEXEC when availableLuca Barbato2013-08-05
|
* lavf: Support unix socketsLuca Barbato2013-08-05
|
* libx264: add shortcut for the bluray compatibility optionLuca Barbato2013-08-05
| | | | As for intra-refresh it is just a commodity.
* mpegts: Make discard_pid() faster for single-program streamsBen Avison2013-08-05
| | | | | | | | | | | | | When a stream contains a single program, there's no point in doing a PID -> program lookup. Normally the one and only program isn't disabled, so no packets should be discarded. Before After Mean StdDev Mean StdDev Change discard_pid() 73.8 9.4 20.2 1.5 +264.8% Overall 2300.8 28.0 2253.1 20.6 +2.1% Signed-off-by: Martin Storsjö <martin@martin.st>
* mpegts: Remove one memcpy per packetBen Avison2013-08-05
| | | | | | | | | | | | | | This was being performed to ensure that a complete packet was held in contiguous memory, prior to parsing the packet. However, the source buffer is typically large enough that the packet was already contiguous, so it is beneficial to return the packet by reference in most cases. Before After Mean StdDev Mean StdDev Change memcpy 720.7 32.7 649.8 25.1 +10.9% Overall 2372.7 46.1 2291.7 21.8 +3.5% Signed-off-by: Martin Storsjö <martin@martin.st>
* avio: Add an internal function for reading without copyingBen Avison2013-08-05
| | | | | | | | As long as there is enough contiguous data in the avio buffer, just return a pointer to it instead of copying it to the caller provided buffer. Signed-off-by: Martin Storsjö <martin@martin.st>
* build: Add missing img2.o dependency to apetag.oDiego Biurrun2013-08-05
|
* ismindex: Replace mkdir ifdeffery by os_support.h #includeDiego Biurrun2013-08-05
| | | | os_support.h contains more precise workarounds for non-POSIX mkdir().
* vdpau: deprecate bitstream buffers within the hardware contextRémi Denis-Courmont2013-08-05
| | | | | | | | The bitstream buffers are now private and freed by libavcodec. For backward compatibility, the hold bitstream buffer pointer is left NULL (applications were supposed to av_freep() it). Signed-off-by: Anton Khirnov <anton@khirnov.net>