summaryrefslogtreecommitdiffstats
path: root/libavcodec/dfa.c
Commit message (Collapse)AuthorAgeFilesLines
* dfa: Disallow odd width/height and add proper bounds check for DDS1 chunksDiego Biurrun2017-08-131-1/+3
| | | | | | | | | DDS1 chunks are decoded in 2x2 blocks, odd chunk width or height is not allowed in that case. Also ensure that the decode buffer is big enough for all blocks being processed. Bug-Id: CVE-2017-9992 CC: libav-stable@libav.org
* Mark some arrays that never change as const.Anton Khirnov2017-02-011-1/+1
|
* lavc: AV-prefix all codec capabilitiesVittorio Giovara2015-07-271-1/+1
| | | | | | Express bitfields more simply. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* avcodec: more correct printf specifiersDiego Biurrun2014-03-221-1/+4
|
* cosmetics: Group .name and .long_name together in codec/format declarationsDiego Biurrun2013-10-031-1/+1
|
* dfa: implement missing TDLT coding methodKostya Shishkov2013-04-091-4/+21
|
* dfa: check for invalid access in decode_wdlt().Anton Khirnov2013-04-041-0/+2
| | | | | | | | This can happen when the number of skipped lines is not consistent with the number of coded lines. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* lavc decoders: work with refcounted frames.Anton Khirnov2013-03-081-14/+6
|
* lavc: fix decode_frame() third parameter semantics for video decodersAnton Khirnov2012-12-041-2/+2
| | | | It's got_frame, not data size
* lavc: add a wrapper for AVCodecContext.get_buffer().Anton Khirnov2012-12-041-1/+2
| | | | It will be useful in the upcoming transition to refcounted AVFrames.
* avutil: Move memcpy_backptr() to mem.cDiego Biurrun2012-10-251-1/+1
| | | | The function is used elsewhere and does not belong with the LZO code.
* dfa: use av_memcpy_backptr() where previously impossibleMans Rullgard2012-10-231-3/+1
| | | | | | | Since the requirement for output padding has been lifted, we can use av_memcpy_backptr() here as well. Signed-off-by: Mans Rullgard <mans@mansr.com>
* av_memcpy_backptr: Drop no longer necessary malloc paddingDiego Biurrun2012-10-231-1/+1
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormatAnton Khirnov2012-10-081-1/+1
|
* dfa: improve boundary checks in decode_dds1()Anton Khirnov2012-09-291-4/+6
| | | | | | Fixes CVE-2012-2798 CC:libav-stable@libav.org
* dfa: check that the caller set width/height properly.Anton Khirnov2012-09-291-0/+6
| | | | Fixes CVE-2012-2786.
* Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov2012-08-071-1/+1
|
* dfa: use more meaningful return codesKostya Shishkov2012-05-061-27/+27
|
* dfa: add some checks to ensure that decoder won't write past frame endKostya Shishkov2012-05-061-1/+7
|
* cosmetics: Align codec declarationsMartin Storsjö2012-04-061-1/+1
| | | | | | | Also break some long lines, remove codec function placeholder comments and add spaces in sample/pixel format lists. Signed-off-by: Martin Storsjö <martin@martin.st>
* dfa: convert to bytestream2 APIPaul B Mahol2012-03-121-89/+74
| | | | | | | Protects from overreads. Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* lavc: use designated initialisers for all codecs.Anton Khirnov2011-07-291-9/+8
| | | | It's more readable and less prone to breakage.
* dfa: Remove unused variable.Diego Biurrun2011-05-151-1/+0
| | | | | This fixes the warning: libavcodec/dfa.c:189: warning: unused variable ‘frame_end’
* dfa: fix buffer overflow checks to avoid integer overflows.Reimar Döffinger2011-05-131-16/+19
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* dfa: protect pointer range checks against overflows.Ronald S. Bultje2011-03-291-3/+3
|
* Chronomaster DFA decoderKostya Shishkov2011-03-281-0/+395
Signed-off-by: Anton Khirnov <anton@khirnov.net>
OpenPOWER on IntegriCloud