summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* 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
|
* 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
* 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.
* 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
* 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
|
* 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>
* 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>
* 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: Utilize the shadow space on 64-bit WindowsHenrik Gramner2013-10-07
| | | | | | | | | Store XMM6 and XMM7 in the shadow space in functions that clobbers them. This way we don't have to adjust the stack pointer as often, reducing the number of instructions as well as code size. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* x86: fdct: Employ more specific ifdefsDiego Biurrun2013-10-06
| | | | This avoids building mmxext and sse2 code when disabled by configure.
* x86: dsputil: Separate ff_add_hfyu_median_prediction_cmov from dsputil_mmxDiego Biurrun2013-10-05
| | | | | The function does not depend on MMX and compilation without MMX enabled fails if the function is compiled conditional on MMX availability.
* x86: fdct: Initialize optimized fdct implementations in the standard wayDiego Biurrun2013-10-05
|
* x86: xviddct: Employ more specific ifdefsDiego Biurrun2013-10-05
| | | | This avoids building mmxext and sse2 code when disabled by configure.
* x86: fdct: Only build fdct code if encoders have been enabledDiego Biurrun2013-10-04
| | | | fdct is only initialized if encoders are enabled.
* cosmetics: Group .name and .long_name together in codec/format declarationsDiego Biurrun2013-10-03
|
* atrac: Add missing av_coldMaxim Poliakovski2013-10-03
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* atrac3: Generalize gain compensation codeMaxim Poliakovski2013-10-03
| | | | | | Move it to the ATRAC common code, to reuse in the upcoming ATRAC3+ decoder. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* Use correct Doxygen syntaxDiego Biurrun2013-10-03
|
* atrac: Move doxygen comments to the headerMaxim Poliakovski2013-10-03
| | | | | | Also update copyright info and file description. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* atrac3: Replace a silly counter variable name with plain 'j'Diego Biurrun2013-10-03
|
* lavc: mark deprecated AVCodec.max_lowres for removal on next bumpAnton Khirnov2013-10-02
|
* pcx: Return an error on broken palette if err_detect is set to 'explode'Martin Storsjö2013-09-29
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* pcx: Check the packet size before assuming it fits a paletteMartin Storsjö2013-09-29
| | | | | | | | This fixes reads out of bounds. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* rpza: Fix a buffer size checkMartin Storsjö2013-09-29
| | | | | | | | | We read 2 bytes for 15 out of 16 pixels, therefore we need to have at least 30 bytes, not 16. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* xxan: Disallow odd widthMartin Storsjö2013-09-29
| | | | | | | | | Decoded data is always written in pairs within this decoder. This fixes writes out of bounds. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* xan: Only read within the data that actually was initializedMartin Storsjö2013-09-29
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* xan: Use bytestream2 to limit reading to within the bufferMartin Storsjö2013-09-29
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* pcx: Consume the whole packet if giving up due to missing paletteMartin Storsjö2013-09-29
| | | | | | | | | Previously, we returned 0, meaning successful decoding but 0 bytes consumed, leading to an infinite loop. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* pngdec: Stop trying to decode once inflate returns Z_STREAM_ENDMartin Storsjö2013-09-29
| | | | | | | | | | If the input buffer contains more data after the deflate stream, the loop previously left running infinitely, with inflate returning Z_STREAM_END. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* alac: Do bounds checking of lpc_order read from the bitstreamMartin Storsjö2013-09-29
| | | | | | | | | In lpc_prediction(), we write up to array element 'lpc_order' in an array allocated to hold 'max_samples_per_frame' elements. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* pcm: support 24-bit/32-bit little-endian planarPaul B Mahol2013-09-27
| | | | | | Used by LXF. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* g2meet: Respect cursor_stride properly everywhereKostya Shishkov2013-09-25
| | | | | | This fixes a regression with rgb cursors since b1e46988. Signed-off-by: Martin Storsjö <martin@martin.st>
* lavc doxy: document that avcodec_flush_buffers() invalidates decoded framesAnton Khirnov2013-09-24
|
* h264: do not reinitialize the global cabac tables at each slice headerAnton Khirnov2013-09-24
|
* cabac: remove write-only h264_mps_state[]Anton Khirnov2013-09-24
|
* lavc: add support for interleaved chroma formats to libx264.Kieran Kunhya2013-09-24
| | | | | | Interleaved chroma is x264's native format Signed-off-by: Anton Khirnov <anton@khirnov.net>