summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* x86inc: Remove our FMA4 supportDerek Buitenhuis2013-10-14
| | | | | | | | This is so we can sync to x264's version of FMA4 support. This partialy reverts commit 79687079a97a039c325ab79d7a95920d800b791f. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* x86inc: Use VEX-encoded instructions in AVX functionsHenrik Gramner2013-10-14
| | | | | | | | | | | | | Automatically use VEX-encoding in AVX/AVX2/XOP/FMA3/FMA4 functions for all instructions that exists in a VEX-encoded version. This change makes it easier to extend existing code to use AVX2. Also add support for AVX emulation of a few instructions that were missing before. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* avresample/x86: Switch operand order for mulpsDerek Buitenhuis2013-10-14
| | | | | | | | With the forthcoming VEX instruction emulation, mulps must have only the third operand point to memory, as this is what vmulps expects. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* rtmp: Allocate the prev_pkt arrays dynamicallyMartin Storsjö2013-10-14
| | | | | | | | | | Normally, all channel ids are between 0 and 10, while they in uncommon cases can have values up to 64k. This avoids allocating two arrays for up to 64k entries (at a total of over 6 MB in size) each when most of them aren't used at all. Signed-off-by: Martin Storsjö <martin@martin.st>
* cavs: Check for negative cbpLuca Barbato2013-10-13
| | | | | | Sample-Id: 00000647-google Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* cavs: Return meaningful error valuesLuca Barbato2013-10-13
|
* cavs: K&R formatting cosmeticsLuca Barbato2013-10-13
|
* http: Support auth method detection for POSTMartin Storsjö2013-10-13
| | | | | | | | | | | | | | | | | | | | | | | | Inspired by a patch by Jakob van Bethlehem. But instead of doing an empty POST first to trigger the WWW-Authenticate header (which would succeed if no auth actually was required), add an Expect: 100-continue header, which is meant to be used exactly for cases like this. The header is added if doing a post, and the user has specified authentication but we don't know the auth method yet. Not all common HTTP servers support the Expect: 100-continue header, though, so we only try to use it when it really is needed. The user can request it to be added for other POST requests as well via an option - which would allow the caller to know immediately that the POST has failed (e.g. if no auth was provided but the server required it, or if the target URL simply doesn't exist). This is only done for write mode posts (e.g. posts without pre-set post_data) - for posts with pre-set data, we can just redo the post if it failed due to 401. Signed-off-by: Martin Storsjö <martin@martin.st>
* http: Add an option for forcing basic authenticationMartin Storsjö2013-10-13
| | | | | | | | | | | | | The default is to autodetect the auth method. This does require one extra request (and also closing and reopening the http connection). For some cases such as HTTP POST, the autodetection is not handled properly (yet). No option is added for digest, since this method requires getting nonce parameters from the server first and can't be used straight away like Basic. Signed-off-by: Martin Storsjö <martin@martin.st>
* pthread: Fix deadlock during thread initializationDerek Buitenhuis2013-10-13
| | | | | | | | | | Sometimes, if pthread_create() failed, then pthread_cond_wait() could accidentally be called in the worker threads after the uninit function had already called pthread_cond_broadcast(), leading to a deadlock. Don't call pthread_cond_wait() if c->done is set. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* indeo4: Check the inherited quant_matLuca Barbato2013-10-13
| | | | | | | | Invalidate it if not supported. Sample-Id: 00000262-google Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* indeo4: Check the block size if reusing the band configurationLuca Barbato2013-10-13
| | | | | | | Sample-Id: 00000287-google Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* oggparsevorbis: fail on memory allocation errorVittorio Giovara2013-10-12
|
* oggvorbisdec: add support for embedded cover artJames Almer2013-10-12
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* flac: move picture parsing code in a separate fileJames Almer2013-10-12
| | | | | Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* oggdec: add support for Opus in Ogg demuxingNicolas George2013-10-12
|
* oggparsevorbis: check allocationsVittorio Giovara2013-10-12
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* oggparsevorbis: support official chapter extensionJames Almer2013-10-12
| | | | | Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavc doxy: extend/clarify avcodec_decode_audio4() doxyAnton Khirnov2013-10-12
| | | | Elaborate on flushing the decoder.
* lavc doxy: remove false statements about alignment requirements.Anton Khirnov2013-10-12
| | | | The packet data does not need to be aligned.
* FATE: add lavr resampling testsAnton Khirnov2013-10-12
|
* FATE: add lavr mixing testsAnton Khirnov2013-10-12
|
* audio_mix: fix channel order in mix_1_to_2_fltp_flt_cAnton Khirnov2013-10-12
| | | | CC:libav-stable@libav.org
* riff: Add a mapping for VP6AMartin Storsjö2013-10-12
| | | | | | This allows demuxing VP6A from F4V files. Signed-off-by: Martin Storsjö <martin@martin.st>
* prores: Reject negative run and level valuesLuca Barbato2013-10-10
| | | | | | | Sample-Id: 00000611-google Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* mxf: Add jpeg2000 codec to intra only codecsMatthieu Bouron2013-10-10
| | | | | | Conform with SMPTE RP 224 and SMPTE s422. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* shorten: Fix out-of-array readTim Walker2013-10-10
| | | | | | pred_order == FF_ARRAY_ELEMS(fixed_coeffs) is invalid too. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* atrac3: Better name for IMDCT window initializationMaxim Poliakovski2013-10-10
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* atrac3: Remove unused gain compensation tablesMaxim Poliakovski2013-10-10
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* prores: Error out only on surely incomplete ac_coeffsLuca Barbato2013-10-10
|
* prores: Add a codepath for decoding errorsLuca Barbato2013-10-10
|
* flvenc: Write proper cropping for VP6 even if there's no extradataMartin Storsjö2013-10-10
| | | | | | This keeps cropping when remuxing from F4V to FLV. Signed-off-by: Martin Storsjö <martin@martin.st>
* flvenc: Support muxing VP6A as wellMartin Storsjö2013-10-10
| | | | | | Handle it in the same way as VP6F, except for the codec tag. Signed-off-by: Martin Storsjö <martin@martin.st>
* flvenc: Don't pretend to support muxing "plain" VP6Martin Storsjö2013-10-10
| | | | | | | | The plain VP6 format is vertically flipped compared to VP6F/VP6A. Support for the plain VP6 format was added in 09d8c0ae831 (which also introduced support for muxing VP6F properly in general). Signed-off-by: Martin Storsjö <martin@martin.st>
* vp6: Support cropping to AVCodecContext.width/heightMartin Storsjö2013-10-10
| | | | | | | | | | | | In these cases, there is no extradata but only the properly set width/height values by the demuxer. This makes sure VP6 in F4V files is cropped properly. This is similar to what is done for H264 for letting the container width/height override what's in the bitstream, since 30f515091. Signed-off-by: Martin Storsjö <martin@martin.st>
* avi: directly resync on DV in AVI read failureLuca Barbato2013-10-10
| | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* avi: DV in AVI must be considered single streamLuca Barbato2013-10-10
| | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* avi: properly fail if the dv demuxer is missingLuca Barbato2013-10-10
| | | | CC: libav-stable@libav.org
* jpeg2000: Check block lengthLuca Barbato2013-10-09
| | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* vmnc: Use meaningful return valuesLuca Barbato2013-10-09
|
* vmnc: Check the cursor dimensionsLuca Barbato2013-10-09
| | | | | | | And manage the reallocation failure path. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* vmnc: Port to bytestream2Luca Barbato2013-10-09
| | | | | | | Fix some buffer overreads. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* vmnc: K&R formatting cosmeticsLuca Barbato2013-10-09
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* x86inc: Remove .rodata kludgesHenrik Gramner2013-10-09
| | | | | | | The Mach-O bug was fixed in yasm 0.8.0 and we don't support versions that old anymore. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* build: Require yasm 0.8.0 or higherDerek Buitenhuis2013-10-09
| | | | | | | | | | | | | | This is in preparation for removing a .rodata kludge which was only required for older YASM versions. The movbe instruction was introduced in 0.8.0, which already had AVX, which was introduced in 0.7.0, and NASM introduced movbe in 2.0.3, which is the same version which introduced AVX support. Also, make the failure message more accurate. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* shorten: Extend fixed_coeffs to properly support pred_order 0Luca Barbato2013-10-09
| | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* x86: h264_idct: Update comments to match 8/10-bit depth optimization splitDiego Biurrun2013-10-07
|
* x86inc: remove misaligned cpu flagHenrik Gramner2013-10-07
| | | | | | | | | | | | Prevents a crash if the misaligned exception mask bit is cleared for some reason. Misaligned SSE functions are only used on AMD Phenom CPUs and the benefit is miniscule. They also require modifying the MXCSR control register and by removing those functions we can get rid of that complexity altogether. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* x86inc: various minor backports from x264Jason Garrett-Glaser2013-10-07
| | | | | | Small backports that sneaked into other asm commits in x264. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* x86inc: Check for __OUTPUT_FORMAT__ having a value of "x64"Derek Buitenhuis2013-10-07
| | | | | | This is also a valid value for WIN64. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>