summaryrefslogtreecommitdiff
path: root/libavcodec/indeo3.c
Commit message (Collapse)AuthorAge
* indeo3: validate new frame size before resetting decoderKostya Shishkov2012-05-15
|
* indeo3: when freeing buffers, set pointers referencing them to NULL as wellKostya Shishkov2012-05-15
|
* indeo3: initialise pixel planes on allocationKostya Shishkov2012-05-15
| | | | 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-15
|
* indeo3: fix motion vector validationHendrik Leppkes2012-05-01
| | | | | | | | 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-28
| | | | | | | | | 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-15
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* indeo3: check motion vectors for validityJanne Grunau2012-01-07
| | | | | | 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-29
| | | | | | Fixes : http://bugzilla.libav.org/show_bug.cgi?id=102 Signed-off-by: Alex Converse <alex.converse@gmail.com>
* indeo3: cosmeticsKostya Shishkov2011-11-28
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* indeo3: error out if no motion vector is set.Aneesh Dogra2011-11-27
| | | | | | 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-08
| | | | Found with asan and the venerable 1-dog.avi sample.
* replacement Indeo 3 decoderMaxim Poliakovski2011-11-03
| | | | | | | 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-02
|
* lavc: use designated initialisers for all codecs.Anton Khirnov2011-07-29
| | | | It's more readable and less prone to breakage.
* indeo3: Eliminate use of long.Alex Converse2011-05-03
|
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-19
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Merge libavcore into libavutilReinhard Tartler2011-02-15
| | | | | | | | | | | | 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-26
| | | | | | | 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-07
| | | | Originally committed as revision 25058 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove use of the deprecated function avcodec_check_dimensions(), useStefano Sabatini2010-08-06
| | | | | | 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-10
| | | | Originally committed as revision 24170 to svn://svn.ffmpeg.org/ffmpeg/trunk
* bswap: change ME to NE in macro namesMåns Rullgård2010-07-10
| | | | | | | 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-30
| | | | | | 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-26
| | | | Originally committed as revision 19508 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove useless #include <unistd.h> from many filesMåns Rullgård2009-07-22
| | | | Originally committed as revision 19499 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change av_free to av_freepReimar Döffinger2009-07-06
| | | | Originally committed as revision 19360 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Reallocate internal buffer when coded frame size changes.Reimar Döffinger2009-07-06
| | | | | | 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
* Change iv_decode_frame to get AVCodecContext as argument, so thatReimar Döffinger2009-07-06
| | | | | | avcodec_check_dimensions can be called with a proper context instead of NULL. Originally committed as revision 19358 to svn://svn.ffmpeg.org/ffmpeg/trunk
* indeo3 decoder uses get_buffer, set CODEC_CAP_DR1Baptiste Coudurier2009-06-05
| | | | Originally committed as revision 19090 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement avcodec_decode_video2(), _audio3() and _subtitle2() which takes anThilo Borgmann2009-04-07
| | | | | | | | | | | AVPacket argument rather than a const uint8_t *buf + int buf_size. This allows passing of packet-specific flags from demuxer to decoder, such as the keyframe flag, which appears necessary to playback corePNG P-frames. Patch by Thilo Borgmann thilo.borgmann googlemail com, see also the thread "Google Summer of Code participation" on the mailinglist. Originally committed as revision 18351 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Reindent after last commitAlex Converse2009-02-19
| | | | Originally committed as revision 17464 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Some buffer checks for indeo3Alex Converse2009-02-19
| | | | Originally committed as revision 17462 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove unneeded check.Benoit Fouet2009-01-26
| | | | Originally committed as revision 16803 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix an exploit in indeo by checking we are not writing out of the strip array.Benoit Fouet2009-01-26
| | | | | | Fixes issue 655 Originally committed as revision 16802 to svn://svn.ffmpeg.org/ffmpeg/trunk
* indeo3: replace sizeof(struct ...) by sizeof(*var)Aurelien Jacobs2008-12-14
| | | | Originally committed as revision 16128 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace 'typedef struct ustr_t' by 'struct ustr', _t is POSIX namespace.Diego Biurrun2008-12-13
| | | | Originally committed as revision 16099 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename some variables and add some comments to try to be a bit more clear.Benoit Fouet2008-10-02
| | | | Originally committed as revision 15510 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix indentation.Benoit Fouet2008-10-01
| | | | Originally committed as revision 15498 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove useless context variable.Benoit Fouet2008-10-01
| | | | Originally committed as revision 15495 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Merge declaration and assignment.Benoit Fouet2008-10-01
| | | | Originally committed as revision 15494 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move iv_decode_frame function to remove a forward declaration.Benoit Fouet2008-09-30
| | | | Originally committed as revision 15488 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove useless lines.Benoit Fouet2008-09-30
| | | | Originally committed as revision 15487 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Reindent whole file.Benoit Fouet2008-09-30
| | | | Originally committed as revision 15486 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Indent.Benoit Fouet2008-09-30
| | | | Originally committed as revision 15480 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Simplify iv_free_func().Benoit Fouet2008-09-30
| | | | Originally committed as revision 15479 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move allocated buffer out of YUV buffer structure.Benoit Fouet2008-09-30
| | | | Originally committed as revision 15478 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove useless initializations.Benoit Fouet2008-09-30
| | | | Originally committed as revision 15477 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Check allocations on init.Benoit Fouet2008-09-30
| | | | Originally committed as revision 15476 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove useless test.Benoit Fouet2008-09-30
| | | | Originally committed as revision 15475 to svn://svn.ffmpeg.org/ffmpeg/trunk