summaryrefslogtreecommitdiffstats
path: root/libavcodec/mjpegdec.c
Commit message (Collapse)AuthorAgeFilesLines
* dsputil: Split off IDCT bits into their own contextDiego Biurrun2014-06-301-4/+6
|
* mjpegdec: Properly set the context colorspace infoDerek Buitenhuis2014-06-241-0/+1
| | | | | | 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-201-0/+1
|
* dsputil: Split clear_block*/fill_block* off into a separate contextDiego Biurrun2014-06-181-2/+4
|
* mjpeg: set color_rangeVittorio Giovara2014-03-161-1/+6
|
* mjpegdec: apply flipping after decoding, not beforeAnton Khirnov2014-01-091-15/+17
| | | | This is simpler and removes a silly restriction on edges being present.
* mjpegdec: use the AVFrame API properly.Anton Khirnov2013-12-091-3/+10
|
* mjpegdec: stop using deprecated avcodec_set_dimensionsAnton Khirnov2013-10-311-2/+4
|
* cosmetics: Group .name and .long_name together in codec/format declarationsDiego Biurrun2013-10-031-2/+2
|
* mjpegb: Detect changing number of planes in interlaced videoMichael Niedermayer2013-09-031-0/+7
| | | | | | 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-201-1/+0
|
* mjpeg: Check the unescaped size for overflowsLuca Barbato2013-06-301-3/+7
| | | | | | | | 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-301-134/+134
| | | | Simplify the control flow and spare some vertical space.
* mjpegdec: validate parameters in mjpeg_decode_scan_progressive_acLuca Barbato2013-05-211-0/+5
| | | | | | | 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-201-3/+3
| | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* mjpeg: Validate sampling factorsLuca Barbato2013-05-201-0/+7
| | | | | | | 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-161-0/+6
| | | | | | | | 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-191-4/+5
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* av_log_missing_feature() ---> avpriv_report_missing_feature()Diego Biurrun2013-03-131-4/+4
|
* lavc decoders: work with refcounted frames.Anton Khirnov2013-03-081-24/+12
|
* Remove unnecessary dsputil.h #includesDiego Biurrun2013-02-261-1/+0
|
* mjpegdec: use put_pixels instead of copy_block8Mans Rullgard2013-02-071-4/+6
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* mjpegdec: fix indentationAnton Khirnov2013-01-261-18/+18
|
* Drop DCTELEM typedefDiego Biurrun2013-01-221-6/+6
| | | | | | 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-081-0/+4
| | | | | | 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-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.
* Restructure av_log_missing_feature messageDiego Biurrun2012-10-091-4/+3
| | | | | | | | 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-081-9/+9
|
* avcodec: Convert some commented-out printf/av_log instances to av_dlogDiego Biurrun2012-10-011-8/+7
|
* avcodec: Drop silly and/or broken printf debug outputDiego Biurrun2012-10-011-9/+0
|
* mjpeg: Rename some symbols to avpriv_* instead of ff_*Samuel Pitoiset2012-09-091-12/+12
| | | | | | 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-041-1/+1
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* mjpegdec: support AVRn interlacedMichael Niedermayer2012-08-221-3/+20
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mjpegdec: more meaningful return valuesLuca Barbato2012-08-171-66/+77
|
* Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov2012-08-071-4/+4
|
* jpeg: handle progressive in second field of interlaced.Ronald S. Bultje2012-05-021-3/+2
| | | | | | | | 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-211-25/+8
| | | | | | | 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-281-2/+1
| | | | Also remove one pointless zero initialization in rangecoder.c.
* Replace computations of remaining bits with calls to get_bits_left().Alex Converse2012-03-051-5/+4
|
* mjpegdec: use correct variable in av_log invocationDiego Biurrun2012-03-011-1/+1
| | | | libavcodec/mjpegdec.c:1463: warning: format ‘%x’ expects type ‘unsigned int’, but argument 5 has type ‘const uint8_t *’
* mjpeg: abort decoding if packet is too large.Ronald S. Bultje2012-02-241-0/+4
| | | | | 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>
* vlc/rl: Add ff_ prefix to the nonstatic symbolsMartin Storsjö2012-02-151-5/+5
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* mjpegdec: use av_fast_padded_malloc()Reimar Döffinger2012-02-011-7/+3
| | | | | | also check for allocation failure Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* lavc: remove disabled FF_API_MJPEG_GLOBAL_OPTS cruft.Anton Khirnov2012-01-271-4/+0
|
* mjpegdec: K&R formatting cosmeticsDaniel Huang2012-01-081-683/+726
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* mjpegdec: parse RSTn to prevent skipping other data in mjpeg_decode_scanJanne Grunau2012-01-051-8/+16
| | | | | | | Check explicitly if enough bits are left to prevent an infinite loop when the bitstream buffer is not followed by zero-padding. Based on patches by Michael Niedermayer <michaelni@gmx.at>.
* mov: Don't stick the QuickTime field ordering atom in extradata.Alex Converse2011-12-211-6/+3
| | | | | | The 'fiel' atoms can be found in H.264 tracks clobbering the extradata. MJPEG supports non field based extradata, and this data should be preserved when copying.
* Fix a bunch of common typos.Diego Biurrun2011-12-111-3/+3
|
OpenPOWER on IntegriCloud