summaryrefslogtreecommitdiff
path: root/libavcodec/mjpegdec.c
Commit message (Collapse)AuthorAge
* mjpeg: propagate decode errors from ff_mjpeg_decode_sos and ff_mjpeg_decode_dqtDustin Brody2011-08-11
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* lavc: use designated initialisers for all codecs.Anton Khirnov2011-07-29
| | | | It's more readable and less prone to breakage.
* jpegdec: actually search for and parse RSTnMichael Niedermayer2011-07-23
| | | | | | | | | | | | | Fixes decoding of MJPEG files produced by some UVC Logitec web cameras, such as "Notebook Pro" and "HD C910". References: http://trac.videolan.org/vlc/ticket/4215 http://ffmpeg.org/trac/ffmpeg/ticket/267 Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Reviewed-by: Kostya <kostya.shishkov@gmail.com> (cherry picked from commit 7b8ed831eb8432d202dad16dedc1758b018bb1fa)
* Remove unused structs and tables.Diego Biurrun2011-07-16
|
* Remove statements immediately following unconditional jumpsMans Rullgard2011-07-03
| | | | | | This removes a number of compiler warnings. Signed-off-by: Mans Rullgard <mans@mansr.com>
* mjpeg: remove pointless braces around block of codeMans Rullgard2011-07-03
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Replace deprecated FF_*_TYPE symbols with AV_PICTURE_TYPE_*.Stefano Sabatini2011-05-02
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* mjpeg: Detect overreads in mjpeg_decode_scan() and error out.Michael Niedermayer2011-04-26
| | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Ronald S. Bultje <rbultje@google.com>
* Add support for picture_ptr field in MJpegDecodeContextanatoly2011-03-30
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Move MJPEG's input buffer preprocessing in separate public functionanatoly2011-03-30
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Support reference picture defined by bitmask in MJPEG's SOS decoderanatoly2011-03-30
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-19
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Set maximum lowres value for the MJPEG decoder to 3.Carl Eugen Hoyos2011-02-16
| | | | | | | While 4 works for some samples, 3 is the correct value since 8x8 DCT is used by (m)jpeg. Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
* Merge libavcore into libavutilReinhard Tartler2011-02-15
| | | | | | | | | | | | 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>
* Replace dprintf with av_dlogLuca Barbato2011-01-29
| | | | dprintf clashes with POSIX.1-2008
* Add ff_ prefix to data symbols of encoders, decoders, hwaccel, parsers, bsf.Diego Elio Pettenò2011-01-26
| | | | | | | None of these symbols should be accessed directly, so declare them as hidden. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Sanitise get_bits macros, part 1Mans Rullgard2011-01-23
| | | | | | | | | Some of the macros in get_bits.h include a final semicolon, some do not. This removes these or adds do {} while(0) around the macros as appropriate and adds semicolons where needed in calling code. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Values >4 for lowres corrupt output.Carl Eugen Hoyos2011-01-16
| | | | Originally committed as revision 26386 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix memleak in mjpeg decoder.Michael Niedermayer2010-10-22
| | | | Originally committed as revision 25549 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Optimize EOB check in mjpeg decode_block() by adjusting the VLC symbol.Michael Niedermayer2010-10-21
| | | | Originally committed as revision 25548 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Simplify last coeff check in mjpeg decode_block()Michael Niedermayer2010-10-21
| | | | Originally committed as revision 25547 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Check index in mjpeg AC decode against overflowing.Michael Niedermayer2010-10-21
| | | | | | This fixes a possibly exploitable buffer overflow and it will likely also be needed for future overreading fixes. Originally committed as revision 25546 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add a seperate VLC table for progressive jpeg so we dont have to subtract 16 ↵Michael Niedermayer2010-10-21
| | | | | | in the inner loop. Originally committed as revision 25545 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Factor code&0xf out of if() in decode_block_progressive().Michael Niedermayer2010-10-21
| | | | Originally committed as revision 25544 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cleanup decode_block_progressive()Michael Niedermayer2010-10-21
| | | | Originally committed as revision 25543 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Factorize ((unsigned) code) >> 4 out of decode_block_progressive() in jpeg.Michael Niedermayer2010-10-21
| | | | Originally committed as revision 25542 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move if() in mjpeg decode_block() to simplify condition.Michael Niedermayer2010-10-21
| | | | Originally committed as revision 25541 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Simplify build_vlc() by using init_vlc_sparse() in mjpeg.Michael Niedermayer2010-10-21
| | | | Originally committed as revision 25540 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use new imgutils.h API names, fix deprecation warnings.Stefano Sabatini2010-09-07
| | | | Originally committed as revision 25058 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix undefined expressions that use multiple calls to get_bits().Alex Converse2010-08-24
| | | | | | | | | Because the order of evaluation of subexpressions is undefined, two get_bits() calls may not be part of the same expression. See also r24902. Originally committed as revision 24906 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove use of the deprecated function avcodec_check_dimensions(), useStefano Sabatini2010-08-06
| | | | | | av_check_image_size() instead. Originally committed as revision 24711 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add av_ prefix to bswap macrosMåns Rullgård2010-07-10
| | | | Originally committed as revision 24170 to svn://svn.ffmpeg.org/ffmpeg/trunk
* bswap: change ME to NE in macro namesMåns Rullgård2010-07-10
| | | | | | | 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
* Add new decoder property max_lowres and do not init decoder if requested ↵Carl Eugen Hoyos2010-07-07
| | | | | | value is higher. Originally committed as revision 24098 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove explicit filename from Doxygen @file commands.Diego Biurrun2010-04-20
| | | | | | | | 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-30
| | | | | | is deprecated and will be dropped at the next major bump. Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix misc typos, patch byStefano Sabatini2010-01-27
| | | | | | Fabian Greffrath base64_decode(PGZhYmlhbkBncmVmZnJhdGguY29tPg==). Originally committed as revision 21473 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Metasoft MJPEG codec has Cb and Cr swapped, fixes issue 1611.Carl Eugen Hoyos2010-01-26
| | | | Originally committed as revision 21451 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix heap overflow due to lack of nb_components check.Michael Niedermayer2010-01-25
| | | | Originally committed as revision 21450 to svn://svn.ffmpeg.org/ffmpeg/trunk
* (Partly) support Metasoft MJPEG Codec, fixes half of issue 1611.Carl Eugen Hoyos2009-12-10
| | | | Originally committed as revision 20796 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Flip red and blue in rct-less lossless jpeg.Michael Niedermayer2009-12-10
| | | | | | Fixes issue1466, and decoding of plain lossless jpeg. Originally committed as revision 20790 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Lossless jpeg expects and uses BGRA not RGB32 (this probably caused a problem onMichael Niedermayer2009-12-10
| | | | | | big endian) Originally committed as revision 20789 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Allocate pictures with enough padding for jpeg.Michael Niedermayer2009-11-20
| | | | | | | Ensure that jpeg does not use mbs that could require larger padding. This might have been exploitable. Originally committed as revision 20566 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Disable image flipping during JPEG decoding if CODEC_FLAG_EMU_EDGE is setReimar Döffinger2009-11-19
| | | | | | | instead of either aborting on the assert or crashing due to writing beyond the array due to insufficient padding. Originally committed as revision 20552 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Avoid huge array for rgb ljpeg on the stack.Michael Niedermayer2009-11-02
| | | | | | Code tested with an ljpeg i had laying around. Originally committed as revision 20433 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Flip (M)JPEG frames encoded by Intel JPEG library.Carl Eugen Hoyos2009-10-19
| | | | | | Fixes issues 1464 and 1468. Originally committed as revision 20312 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Release unreleased buffers found by make test.Carl Eugen Hoyos2009-10-16
| | | | Originally committed as revision 20251 to svn://svn.ffmpeg.org/ffmpeg/trunk
* lavc MJPEG decoder is capable of decoding some extended sequentialKostya Shishkov2009-10-01
| | | | | | | | Huffman-compressed JPEG files, so make it decode those files (samples are welcome). This fixes issue 1420 Originally committed as revision 20113 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change av_log() calls surrounded by '#ifdef DEBUG' into dprintf macros.Diego Biurrun2009-07-30
| | | | Originally committed as revision 19550 to svn://svn.ffmpeg.org/ffmpeg/trunk
* If the end of the input buffer is reached while decoding MJPEG and at leastReimar Döffinger2009-07-04
| | | | | | | a valid SOF was found, emulate an EOI. This allows e.g. to at least decode the available part of incomplete MJPEG frames. Originally committed as revision 19344 to svn://svn.ffmpeg.org/ffmpeg/trunk