summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* 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>
* h264_sei: check SEI sizeMichael Niedermayer2013-09-24
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* h264: do not discard NAL_SEI when skipping framesRainer Hochecker2013-09-24
| | | | | | Setting AVDISCARD_NONREF (e.g. after flushing) resulted in 100% dropped frames. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* h264: log extradata skip only for non-ignored NALsVittorio Giovara2013-09-24
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* h264_sei: log unknown sei messagesVittorio Giovara2013-09-24
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* mpegvideo: Initialize chroma_*_shift and codec_tag even if the size is 0Martin Storsjö2013-09-24
| | | | | | | | | | | | This fixes breakage in a few fate tests on certain setups (that for some reason didn't break on OS X) after the previous commit (8812a8057). Currently, some video streams are initialized in ff_MPV_common_init with width/height set at 0 and only changed to a proper video size with ff_MPV_common_frame_size_change later. The breakage was diagnosed by Anton Khirnov. Signed-off-by: Martin Storsjö <martin@martin.st>
* h263dec: Remove a hack that can cause infinite loopsMartin Storsjö2013-09-23
| | | | | | | | The actual usefulness of the hack is not known, and it does cause infinite loops with some broken input files. CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* vc1dec: Check the error handling flags on slice/field header decode errorsMartin Storsjö2013-09-22
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* vc1dec: Don't decode slices when the latest slice header failed to decodeMichael Niedermayer2013-09-22
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* vc1dec: Make sure last_picture is initialized in vc1_decode_skip_blocksMartin Storsjö2013-09-22
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* vc1dec: Undo mpegvideo initialization if unable to allocate tablesMartin Storsjö2013-09-22
| | | | | | | | | | Previously, s->context_initialized was left set to 1 if ff_vc1_decode_init_alloc_tables failed, skipping the initialization completely on the next decode call. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* vc1dec: Fix leaks in ff_vc1_decode_init_alloc_tables on errorsMartin Storsjö2013-09-22
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* wnv1: Make sure the input packet is large enoughMartin Storsjö2013-09-22
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* h264: remove an unused static constantVittorio Giovara2013-09-20
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* dcadec: Validate the lfe parameterMartin Storsjö2013-09-20
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* fraps: Make the input buffer size checks more strictMartin Storsjö2013-09-19
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* svq3: Avoid a division by zeroMartin Storsjö2013-09-19
| | | | | | | | | | If the height is zero, the decompression will probably end up failing due to not fitting into the allocated buffer later anyway, so this doesn't need any more elaborate check. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* qpeg: Add checks for running out of rows in qpeg_decode_interMartin Storsjö2013-09-19
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* mpegaudiodec: Validate that the number of channels fits at the given offsetMartin Storsjö2013-09-19
| | | | | | | | This is similar to the fix in 35cbc98b. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* asvdec: Verify the amount of extradataMartin Storsjö2013-09-19
| | | | | | | | The init function reads one byte of extradata. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* rv34: Fix a memory leak on errorsMartin Storsjö2013-09-19
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rv10: Validate the dimensions set from the containerMartin Storsjö2013-09-19
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* aacdec: Add support for LD (Low Delay) AACAlex Converse2013-09-18
|
* aacdec: Add support for Error Resilience syntax.Alex Converse2013-09-18
| | | | This does not add support for any error resilience tools.
* Add a WebP decoderJustin Ruggles2013-09-18
| | | | | Container and lossy decoding by Aneesh Dogra <aneesh@sugarlabs.org> Lossless decoding by Justin Ruggles <justin.ruggles@gmail.com>
* lavc: add ff_u8_to_s8() for safe type punning of uint8_t to int8_tJustin Ruggles2013-09-18
|