summaryrefslogtreecommitdiff
path: root/libavcodec/mjpegdec.c
Commit message (Collapse)AuthorAge
* 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
|
* mjpegdec: use correct variable in av_log invocationDiego Biurrun2012-03-01
| | | | 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-24
| | | | | 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>
* vlc/rl: Add ff_ prefix to the nonstatic symbolsMartin Storsjö2012-02-15
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* mjpegdec: use av_fast_padded_malloc()Reimar Döffinger2012-02-01
| | | | | | 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-27
|
* mjpegdec: K&R formatting cosmeticsDaniel Huang2012-01-08
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* mjpegdec: parse RSTn to prevent skipping other data in mjpeg_decode_scanJanne Grunau2012-01-05
| | | | | | | 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-21
| | | | | | 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-11
|
* lavc: replace references to deprecated AVCodecContext.error_recognition to ↵Dustin Brody2011-10-22
| | | | | | use AVCodecContext.err_recognition Signed-off-by: Anton Khirnov <anton@khirnov.net>
* AVOptions: rename FF_OPT_TYPE_* => AV_OPT_TYPE_*Anton Khirnov2011-10-12
|
* mjpegdec: add 'extern_huff' private option.Anton Khirnov2011-08-31
| | | | Deprecate CODEC_FLAG_EXTERN_HUFF
* mjpeg: treat external huffman table setup failure as codec init failure if ↵Dustin Brody2011-08-31
| | | | | | external huffman table use requested Signed-off-by: Anton Khirnov <anton@khirnov.net>