summaryrefslogtreecommitdiffstats
path: root/libavcodec/indeo3.c
Commit message (Collapse)AuthorAgeFilesLines
* indeo3: check ff_set_dimensions return valueVittorio Giovara2014-11-131-1/+2
| | | | | CC: libav-stable@libav.org Bug-Id: CID 1135740
* indeo3: stop using deprecated avcodec_set_dimensionsAnton Khirnov2013-10-311-1/+1
|
* cosmetics: Group .name and .long_name together in codec/format declarationsDiego Biurrun2013-10-031-1/+1
|
* indeo3: avoid writes without necessary alignment in copy_cell()Janne Grunau2013-05-101-3/+1
| | | | | | | Cells starting at a position aligned to 8 pixels but wider than 4 blocks are copied with 3 blocks per loop. This creates problems on the next loop iterations since the routine copying 2 blocks requires the same alignment on some architectures like ARM NEON.
* indeo3: use unaligned reads on reference blocks.Anton Khirnov2013-05-071-20/+20
| | | | | | | They are not guaranteed to be aligned. Fixes Bug 503. CC:libav-stable@libav.org
* indeo3: use put_pixels instead of put_no_rnd_pixels in copy_cell()Anton Khirnov2013-04-301-3/+3
| | | | | They are the same in this case, except put_pixels also has blocksizes smaller than 8.
* indeo3: fix off by one in MV validity checkAnton Khirnov2013-04-301-4/+4
| | | | CC:libav-stable@libav.org
* indeo3: Use hpeldsp instead of dsputil for half-pel functionsRonald S. Bultje2013-04-191-8/+8
| | | | | | This makes the Indeo 3 decoder independent of dsputil. Signed-off-by: Martin Storsjö <martin@martin.st>
* indeo3: check motion vectors.Anton Khirnov2013-04-171-5/+29
| | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC:libav-stable@libav.org
* indeo3: fix data size checkAnton Khirnov2013-04-171-2/+1
| | | | | | | | | The data offsets are relative to the bistream header, which is 16 bytes after the start of the data. Fixes invalid reads with corrupted files. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC:libav-stable@libav.org
* indeo3: switch parsing the header to bytestream2Anton Khirnov2013-04-171-17/+22
| | | | | | | | Also add an additional sanity check to the alt_quant table. Fixes invalid reads with corrupted files. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC:libav-stable@libav.org
* avcodec: av_log_ask_for_sample() ---> avpriv_request_sample()Diego Biurrun2013-03-131-2/+2
|
* lavc decoders: work with refcounted frames.Anton Khirnov2013-03-081-15/+5
|
* indeo3: replace use of copy_block4 with put_pixelsMans Rullgard2013-02-071-9/+12
| | | | | | The destination is sufficiently aligned for put_pixels here. Signed-off-by: Mans Rullgard <mans@mansr.com>
* lavc: fix decode_frame() third parameter semantics for video decodersAnton Khirnov2012-12-041-3/+3
| | | | 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.
* indeo3: remove duplicate capabilities line.Anton Khirnov2012-10-291-1/+0
|
* lavc: add CODEC_CAP_DR1 to all video decoders missing themAnton Khirnov2012-10-291-0/+1
|
* indeo3: do not try to output more lines than we can fitKostya Shishkov2012-10-191-5/+15
| | | | | | | | Internally chroma planes have multiple of four height while allocated image planes might be smaller if CODEC_FLAG_EMU_EDGE is set. Thus we should not output more lines of chroma than frame can accept. Also the decoder can be safely switched to direct rendering now.
* Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormatAnton Khirnov2012-10-081-1/+1
|
* indeo3: fix out of cell write.Anton Khirnov2012-09-291-0/+3
| | | | | | | | Fixes CVE-2012-2776. CC:libav-stable@libav.org Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
* Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov2012-08-071-1/+1
|
* indeo3: validate new frame size before resetting decoderKostya Shishkov2012-05-151-0/+8
|
* indeo3: when freeing buffers, set pointers referencing them to NULL as wellKostya Shishkov2012-05-151-0/+1
|
* indeo3: initialise pixel planes on allocationKostya Shishkov2012-05-151-0/+2
| | | | This prevents decoder from reading garbage from it in case of errors later.
* indeo3: ensure that decoded cell data is in 7-bit range as presumed by decoderKostya Shishkov2012-05-151-14/+16
|
* indeo3: fix motion vector validationHendrik Leppkes2012-05-011-2/+2
| | | | | | | | The index of the motion vector has to be checked before being multiplied by 2 for the array index. Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* Indeo3: fix crashes on corrupt bitstreams.Ronald S. Bultje2012-02-281-1/+8
| | | | | | | | | Splits at borders of cells are invalid, since it leaves one of the cells with a width/height of zero. Also, propagate errors on buffer allocation failures, so we don't continue decoding (which crashes). Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* dsputil: Add ff_ prefix to the dsputil*_init* functionsMartin Storsjö2012-02-151-1/+1
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* indeo3: check motion vectors for validityJanne Grunau2012-01-071-4/+18
| | | | | | Fixes null pointer dereferences in fuzzed files found by Oana Stratulat. Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* indeo3: check per-plane data buffer against input buffer bounds.Aneesh Dogra2011-11-291-1/+3
| | | | | | Fixes : http://bugzilla.libav.org/show_bug.cgi?id=102 Signed-off-by: Alex Converse <alex.converse@gmail.com>
* indeo3: cosmeticsKostya Shishkov2011-11-281-1/+1
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* indeo3: error out if no motion vector is set.Aneesh Dogra2011-11-271-0/+2
| | | | | | This fixes a crash on a corrupt bitstream (bugzilla #93). Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* indeo3: Fix a fencepost error.Alex Converse2011-11-081-1/+1
| | | | Found with asan and the venerable 1-dog.avi sample.
* replacement Indeo 3 decoderMaxim Poliakovski2011-11-031-1003/+919
| | | | | | | The new decoder is much smaller and has better code quality. Cleanup and fixes courtesy of Kostya Shishkov. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* Remove some stray unnecessary ffmpeg references.Diego Biurrun2011-11-021-1/+1
|
* lavc: use designated initialisers for all codecs.Anton Khirnov2011-07-291-10/+8
| | | | It's more readable and less prone to breakage.
* indeo3: Eliminate use of long.Alex Converse2011-05-031-11/+11
|
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-191-4/+4
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Merge libavcore into libavutilReinhard Tartler2011-02-151-1/+1
| | | | | | | | | | | | It is pretty hopeless that other considerable projects will adopt libavutil alone in other projects. Projects that need small footprint are better off with more specialized libraries such as gnulib or rather just copy the necessary parts that they need. With this in mind, nobody is helped by having libavutil and libavcore split. In order to ease maintenance inside and around FFmpeg and to reduce confusion where to put common code, avcore's functionality is merged (back) to avutil. Signed-off-by: Reinhard Tartler <siretart@tauware.de>
* Add ff_ prefix to data symbols of encoders, decoders, hwaccel, parsers, bsf.Diego Elio Pettenò2011-01-261-1/+1
| | | | | | | None of these symbols should be accessed directly, so declare them as hidden. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Use new imgutils.h API names, fix deprecation warnings.Stefano Sabatini2010-09-071-1/+1
| | | | Originally committed as revision 25058 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove use of the deprecated function avcodec_check_dimensions(), useStefano Sabatini2010-08-061-1/+2
| | | | | | av_check_image_size() instead. Originally committed as revision 24711 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add av_ prefix to bswap macrosMåns Rullgård2010-07-101-33/+33
| | | | Originally committed as revision 24170 to svn://svn.ffmpeg.org/ffmpeg/trunk
* bswap: change ME to NE in macro namesMåns Rullgård2010-07-101-33/+33
| | | | | | | Other parts of FFmpeg use NE (native endian) rather than ME (machine). This makes it consistent. Originally committed as revision 24169 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Define AVMediaType enum, and use it instead of enum CodecType, whichStefano Sabatini2010-03-301-1/+1
| | | | | | is deprecated and will be dropped at the next major bump. Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace WORDS_BIGENDIAN with HAVE_BIGENDIANMåns Rullgård2009-07-261-1/+1
| | | | Originally committed as revision 19508 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove useless #include <unistd.h> from many filesMåns Rullgård2009-07-221-1/+0
| | | | Originally committed as revision 19499 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change av_free to av_freepReimar Döffinger2009-07-061-3/+3
| | | | Originally committed as revision 19360 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Reallocate internal buffer when coded frame size changes.Reimar Döffinger2009-07-061-0/+12
| | | | | | Fixes out-of-bounds reads and writes with i32/smclocki32.avi.1.0 from issue 1240. Originally committed as revision 19359 to svn://svn.ffmpeg.org/ffmpeg/trunk
OpenPOWER on IntegriCloud