summaryrefslogtreecommitdiffstats
path: root/libavcodec/4xm.c
Commit message (Collapse)AuthorAgeFilesLines
* cosmetics: Remove extra newlines at EOFAlex Converse2012-01-271-1/+0
|
* 4xm: Prevent buffer overreads.Aneesh Dogra2012-01-051-3/+11
| | | | | | | 4xm decoder while decoding i2 frames can overread the buffer if proper checks are not made. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Revert "4xm: Prevent buffer overreads."Ronald S. Bultje2012-01-041-11/+3
| | | | | This reverts commit 295a7c0238e84b0ffa8f21ed938d45f51f54a4cd. The patch breaks decoding of regular files (e.g. fate-4xm-2).
* 4xm: Prevent buffer overreads.Aneesh Dogra2012-01-041-3/+11
| | | | | | | 4xm decoder while decoding i2 frames can overread the buffer if proper checks are not made. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* 4xm: pass the correct remaining buffer size to decode_i2_frame().Aneesh Dogra2012-01-041-1/+1
| | | | | | | frame_size is the number of bytes left in the packet, so if we are passing buf-4 we can safely read frame_size+4 bytes. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* 4xm: fix calculation of the next output line position in decode_i2_frame().Aneesh Dogra2012-01-041-1/+1
| | | | | | The current code doesn't work unless width is an exact multiple of 16. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* 4xm: remove unused variables.Anton Khirnov2011-12-231-3/+0
|
* 4xm: Add a check in decode_i_frame to prevent buffer overreadsShitiz Garg2011-12-221-3/+12
| | | | | | Fixes bugzilla #135 Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* 4xm: Use bytestream2 functions to prevent overreadsAneesh Dogra2011-12-201-13/+15
| | | | | | Fixes Bug 110. Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* 4xm: remove unneeded check for remaining unused data.Justin Ruggles2011-12-181-9/+0
| | | | | This is unnecessary complication that only prints a message and does not affect decoding.
* 4xm: prevent NULL dereference with invalid huffman tableLaurent Aimar2011-10-101-3/+4
| | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* 4xm: clear FF_INPUT_BUFFER_PADDING_SIZE bytes in temporary buffersLaurent Aimar2011-10-101-0/+2
| | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* 4xm: fix signed overflowMans Rullgard2011-10-091-1/+1
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* lavc: use designated initialisers for all codecs.Anton Khirnov2011-07-291-9/+8
| | | | It's more readable and less prone to breakage.
* Replace deprecated FF_*_TYPE symbols with AV_PICTURE_TYPE_*.Stefano Sabatini2011-05-021-4/+4
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-191-4/+4
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* 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>
* Allocate last picture for 4xm pfrm if its not allocated.Michael Niedermayer2011-01-161-0/+8
| | | | | | Fixes segfault and issue2527 Originally committed as revision 26397 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix visual artifacts in 4XM decoding on big-endian systemVitor Sessak2010-11-121-7/+24
| | | | Originally committed as revision 25734 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add av_ prefix to bswap macrosMåns Rullgård2010-07-101-6/+6
| | | | 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-6/+6
| | | | | | | 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
* Remove explicit filename from Doxygen @file commands.Diego Biurrun2010-04-201-1/+1
| | | | | | | | Passing an explicit filename to this command is only necessary if the documentation in the @file block refers to a file different from the one the block resides in. Originally committed as revision 22921 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
* Remove DECLARE_ALIGNED_{8,16} macrosMåns Rullgård2010-03-061-1/+1
| | | | | | | These macros are redundant. All uses are replaced with the generic DECLARE_ALIGNED macro instead. Originally committed as revision 22233 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move array specifiers outside DECLARE_ALIGNED() invocationsMåns Rullgård2010-01-221-1/+1
| | | | Originally committed as revision 21377 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix red/blue swap for 4xa files.Carl Eugen Hoyos2010-01-071-1/+1
| | | | Originally committed as revision 21070 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add missing release_buffer on closeReimar Döffinger2009-10-131-0/+4
| | | | Originally committed as revision 20227 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 4xm: provide 16-byte alignment where requiredMåns Rullgård2009-08-261-1/+1
| | | | Originally committed as revision 19717 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 4xm decoder uses get_buffer, set CODEC_CAP_DR1Baptiste Coudurier2009-06-051-1/+1
| | | | Originally committed as revision 19091 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename bitstream.h to get_bits.h.Stefano Sabatini2009-04-131-1/+1
| | | | Originally committed as revision 18494 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add a av_fast_malloc function and replace several uses of av_fast_realloc,Reimar Döffinger2009-04-121-2/+6
| | | | | | thus avoiding potential memleaks and pointless memcpys. Originally committed as revision 18470 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use void * instead of uint8_t * for the destination buffer for dsp.bswap_bufReimar Döffinger2009-04-121-3/+3
| | | | | | | where easily possible (mimic, eatqi, 4xm). This allows to avoid a typecast. Originally committed as revision 18469 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Get rid of INIT_VLC_USE_STATIC in 4xm.Michael Niedermayer2009-04-111-1/+4
| | | | Originally committed as revision 18435 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use INIT_VLC_USE_STATIC and not its value "1".Carl Eugen Hoyos2009-04-111-1/+1
| | | | Originally committed as revision 18430 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement avcodec_decode_video2(), _audio3() and _subtitle2() which takes anThilo Borgmann2009-04-071-1/+3
| | | | | | | | | | | 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
* Add missing av_cold in static init/close functions.Daniel Verkamp2009-02-221-1/+1
| | | | | | Patch by Daniel Verkamp daniel at drv dot nu. Originally committed as revision 17526 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use full internal pathname in doxygen @file directives.Diego Biurrun2009-02-011-1/+1
| | | | | | | Otherwise doxygen complains about ambiguous filenames when files exist under the same name in different subdirectories. Originally committed as revision 16912 to svn://svn.ffmpeg.org/ffmpeg/trunk
* remove ff_get_fourcc() and use AV_RL32() insteadAurelien Jacobs2009-01-171-6/+6
| | | | Originally committed as revision 16654 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix build: Add intreadwrite.h and bswap.h #includes where necessary.Diego Biurrun2009-01-111-0/+1
| | | | Originally committed as revision 16556 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make AVCodec long_names definition conditional depending on CONFIG_SMALL.Stefano Sabatini2008-06-121-1/+1
| | | | Originally committed as revision 13759 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add long names to some AVCodec declarations.Stefano Sabatini2008-04-281-0/+1
| | | | | | patch by Stefano Sabatini, stefano.sabatini-lala poste it Originally committed as revision 13010 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: typo fixesDiego Biurrun2008-03-221-1/+1
| | | | Originally committed as revision 12554 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Apply 'cold' attribute to init/uninit functions in libavcodecZuxy Meng2008-03-211-3/+3
| | | | Originally committed as revision 12525 to svn://svn.ffmpeg.org/ffmpeg/trunk
* remove more useless mpegvideo.h includesAurelien Jacobs2008-03-051-5/+5
| | | | Originally committed as revision 12323 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace get32() by AV_RL32().Michael Niedermayer2008-02-011-15/+11
| | | | Originally committed as revision 11755 to svn://svn.ffmpeg.org/ffmpeg/trunk
* constMichael Niedermayer2008-02-011-16/+16
| | | | Originally committed as revision 11754 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cast to dest type, fix warning: 4xm.c:304: warning: initialization from ↵Baptiste Coudurier2008-01-311-1/+1
| | | | | | incompatible pointer type Originally committed as revision 11676 to svn://svn.ffmpeg.org/ffmpeg/trunk
* fix decoding of dracula.4xm before diego complainsMichael Niedermayer2007-09-051-7/+7
| | | | Originally committed as revision 10393 to svn://svn.ffmpeg.org/ffmpeg/trunk
* fix segfault with dracula.4xmMichael Niedermayer2007-09-051-0/+10
| | | | | | closes issue132 Originally committed as revision 10392 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change 4xm demuxer and video decoder to pass the video format version inRoberto Togni2007-08-271-1/+6
| | | | | | extradata instead of codec_tag. Originally committed as revision 10253 to svn://svn.ffmpeg.org/ffmpeg/trunk
OpenPOWER on IntegriCloud