summaryrefslogtreecommitdiffstats
path: root/libavcodec/pcx.c
Commit message (Collapse)AuthorAgeFilesLines
* lavc: AV-prefix all codec capabilitiesVittorio Giovara2015-07-271-1/+1
| | | | | | Express bitfields more simply. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* pcx: round up in bits->bytes conversion in a buffer size checkAnton Khirnov2013-11-211-1/+1
| | | | | | Fixes invalid reads. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC:libav-stable@libav.org
* pcx: stop using deprecated avcodec_set_dimensionsAnton Khirnov2013-10-311-3/+2
|
* cosmetics: Group .name and .long_name together in codec/format declarationsDiego Biurrun2013-10-031-1/+1
|
* pcx: Return an error on broken palette if err_detect is set to 'explode'Martin Storsjö2013-09-291-2/+4
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* pcx: Check the packet size before assuming it fits a paletteMartin Storsjö2013-09-291-0/+6
| | | | | | | | 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>
* pcx: Consume the whole packet if giving up due to missing paletteMartin Storsjö2013-09-291-0/+1
| | | | | | | | | 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>
* pcx: Do not overread source buffer in pcx_rle_decodeLuca Barbato2013-07-121-8/+16
| | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* pcx: K&R formatting cosmeticsLuca Barbato2013-07-121-57/+59
|
* lavc decoders: work with refcounted frames.Anton Khirnov2013-03-081-33/+2
|
* pcx: return meaningful error codes.Anton Khirnov2013-01-141-8/+8
|
* 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.
* Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormatAnton Khirnov2012-10-081-2/+2
|
* Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov2012-08-071-1/+1
|
* 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>
* lavc: use designated initialisers for all codecs.Anton Khirnov2011-07-291-10/+8
| | | | It's more readable and less prone to breakage.
* Replace deprecated FF_*_TYPE symbols with AV_PICTURE_TYPE_*.Stefano Sabatini2011-05-021-1/+1
| | | | 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>
* 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
* pcx: convert VLAs to malloc/freeMåns Rullgård2010-06-261-7/+11
| | | | Originally committed as revision 23796 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
* Fix indentation.Benoit Fouet2009-10-271-1/+1
| | | | Originally committed as revision 20378 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Only memset for palettes of 16 elements.Benoit Fouet2009-10-271-0/+1
| | | | Originally committed as revision 20377 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Support decoding of uncompressed PCX scanlinesPeter Ross2009-10-031-14/+20
| | | | Originally committed as revision 20153 to svn://svn.ffmpeg.org/ffmpeg/trunk
* pcx decoder use get_buffer, set CODEC_CAP_DR1Baptiste Coudurier2009-06-051-1/+1
| | | | Originally committed as revision 19098 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
* 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
* 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
* Correct type for pcx_rle_decode().Carl Eugen Hoyos2008-05-121-1/+1
| | | | | | | Fixes icc warning #120: return value type does not match the function type Originally committed as revision 13139 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add long names to some AVCodec declarations.Stefano Sabatini2008-04-291-1/+2
| | | | | | patch by Stefano Sabatini, stefano.sabatini-lala poste it Originally committed as revision 13022 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Apply 'cold' attribute to init/uninit functions in libavcodecZuxy Meng2008-03-211-2/+2
| | | | Originally committed as revision 12525 to svn://svn.ffmpeg.org/ffmpeg/trunk
* constMichael Niedermayer2008-02-011-6/+7
| | | | Originally committed as revision 11735 to svn://svn.ffmpeg.org/ffmpeg/trunk
* remove useless castIvo van Poorten2007-12-271-1/+1
| | | | Originally committed as revision 11328 to svn://svn.ffmpeg.org/ffmpeg/trunk
* PC Paintbrush PCX image decoderIvo van Poorten2007-12-261-0/+246
Originally committed as revision 11321 to svn://svn.ffmpeg.org/ffmpeg/trunk
OpenPOWER on IntegriCloud