summaryrefslogtreecommitdiff
path: root/libavcodec/mjpegdec.c
Commit message (Collapse)AuthorAge
* mjpegdec: Properly fail on malloc failureDerek Buitenhuis2016-05-19
| | | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* cosmetics: Fix spelling mistakesVittorio Giovara2016-05-04
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* lavc: Consistently prefix input buffer definesVittorio Giovara2015-07-27
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: AV-prefix all codec capabilitiesVittorio Giovara2015-07-27
| | | | | | Express bitfields more simply. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: Replace av_dlog and tprintf with internal macrosVittorio Giovara2015-04-19
|
* build: Split JPEG-related tables off into a separate componentDiego Biurrun2015-03-30
|
* mjpeg: Move code only used in the encoder(s) to the appropriate headerDiego Biurrun2015-03-30
|
* mjpeg: Mark decoder family as thread safeVittorio Giovara2015-03-13
| | | | | | No global variables are used and the VLC tables are allocated without static elements. This will allow using a JPEG decoding context within other decoders.
* mjpegdec: check for pixel format changesAnton Khirnov2014-12-19
| | | | | | | | | | Fixes possible invalid memory access. Based on code by Michael Niedermayer <michaelni@gmx.at> CC: libav-stable@libav.org Bug-ID: CVE-2014-8541 Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
* mjpegdec: fix undefined shiftVittorio Giovara2014-11-06
| | | | | | | Add a comment to explain the code. CC: libav-stable@libav.org Bug-Id: CID 1194388
* dsputil: Split off IDCT bits into their own contextDiego Biurrun2014-06-30
|
* mjpegdec: Properly set the context colorspace infoDerek Buitenhuis2014-06-24
| | | | | | The JPEG spec requires it to be this. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* Add av_image_check_sar() and use it to validate SARJustin Ruggles2014-06-20
|
* dsputil: Split clear_block*/fill_block* off into a separate contextDiego Biurrun2014-06-18
|
* mjpeg: set color_rangeVittorio Giovara2014-03-16
|
* mjpegdec: apply flipping after decoding, not beforeAnton Khirnov2014-01-09
| | | | This is simpler and removes a silly restriction on edges being present.
* mjpegdec: use the AVFrame API properly.Anton Khirnov2013-12-09
|
* mjpegdec: stop using deprecated avcodec_set_dimensionsAnton Khirnov2013-10-31
|
* cosmetics: Group .name and .long_name together in codec/format declarationsDiego Biurrun2013-10-03
|
* mjpegb: Detect changing number of planes in interlaced videoMichael Niedermayer2013-09-03
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* avcodec: Remove some commented-out debug cruftDiego Biurrun2013-08-20
|
* mjpeg: Check the unescaped size for overflowsLuca Barbato2013-06-30
| | | | | | | | And contextually check init_get_bits success and fix the reporting message. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* mjpeg: Move code out of else branchLuca Barbato2013-06-30
| | | | Simplify the control flow and spare some vertical space.
* mjpegdec: validate parameters in mjpeg_decode_scan_progressive_acLuca Barbato2013-05-21
| | | | | | | Prevent out of buffer write when decoding broken samples. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* ljpeg: use the correct number of components in yuvLuca Barbato2013-05-20
| | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* mjpeg: Validate sampling factorsLuca Barbato2013-05-20
| | | | | | | They must be non-zero. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* mjpegdec: properly report unsupported disabled featuresLuca Barbato2013-05-16
| | | | | | | | When JPEG-LS support is disabled the decoder would feed the data to the JPEG Lossless decode_*_scan function resulting in faulty decoding. CC: libav-stable@libav.org
* mjpeg: Use hpeldsp instead of dsputil for half-pel functionsRonald S. Bultje2013-04-19
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* av_log_missing_feature() ---> avpriv_report_missing_feature()Diego Biurrun2013-03-13
|
* lavc decoders: work with refcounted frames.Anton Khirnov2013-03-08
|
* Remove unnecessary dsputil.h #includesDiego Biurrun2013-02-26
|
* mjpegdec: use put_pixels instead of copy_block8Mans Rullgard2013-02-07
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* mjpegdec: fix indentationAnton Khirnov2013-01-26
|
* Drop DCTELEM typedefDiego Biurrun2013-01-22
| | | | | | It does not help as an abstraction and adds dsputil dependencies. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* mjpeg: initialize input padding after unescaped buffer to zeroJanne Grunau2012-12-08
| | | | | | Fixes valgrind --undef-value-errors=yes warnings caused by valid overreads in the fate vsynth jpegls, cover-art-ape and cover-art-wv tests.
* lavc: fix decode_frame() third parameter semantics for video decodersAnton Khirnov2012-12-04
| | | | It's got_frame, not data size
* lavc: add a wrapper for AVCodecContext.get_buffer().Anton Khirnov2012-12-04
| | | | It will be useful in the upcoming transition to refcounted AVFrames.
* Restructure av_log_missing_feature messageDiego Biurrun2012-10-09
| | | | | | | | Some invocations include a verb in the log message, others do not. Yet av_log_missing_feature expects callers to provide a verb. Change the function to include a verb instead and update the callers accordingly. The result is a more natural function API and correct English in the function invocations.
* Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormatAnton Khirnov2012-10-08
|
* avcodec: Convert some commented-out printf/av_log instances to av_dlogDiego Biurrun2012-10-01
|
* avcodec: Drop silly and/or broken printf debug outputDiego Biurrun2012-10-01
|
* mjpeg: Rename some symbols to avpriv_* instead of ff_*Samuel Pitoiset2012-09-09
| | | | | | These symbols will be used from the RTP/JPEG depacketizer. Signed-off-by: Martin Storsjö <martin@martin.st>
* avopt: Store defaults for AV_OPT_TYPE_INT in the i64 union memberMartin Storsjö2012-09-04
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* mjpegdec: support AVRn interlacedMichael Niedermayer2012-08-22
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mjpegdec: more meaningful return valuesLuca Barbato2012-08-17
|
* Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov2012-08-07
|
* jpeg: handle progressive in second field of interlaced.Ronald S. Bultje2012-05-02
| | | | | | | | Progressive data is allocated later in decode_sof(), not allocating that data leads to NULL dereferences. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* Remove lowres video decodingMans Rullgard2012-04-21
| | | | | | | This feature is complex, of questionable utility, and slows down normal decoding. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Replace memset(0) by zero initializations.Diego Biurrun2012-03-28
| | | | Also remove one pointless zero initialization in rangecoder.c.
* Replace computations of remaining bits with calls to get_bits_left().Alex Converse2012-03-05
|