summaryrefslogtreecommitdiff
path: root/libavcodec/mjpegdec.c
Commit message (Collapse)AuthorAge
...
* 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
* Make the MJPEG decoder return -1 when no image was decoded so that decodeReimar Döffinger2009-07-04
| | | | | | errors are actually recognizable as such. Originally committed as revision 19343 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add a got_picture flag to MJpegDecodeContext which indicates if its pictureReimar Döffinger2009-07-04
| | | | | | | | | element is valid. Skip the code handling SOS and EOI if not, since it can not work without a valid AVPicture. This fixes a crash with mjpeg/smclockmjpeg.avi.1.0 from issue 1240 where the decoder returned an invalid AVPicture. Originally committed as revision 19342 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mjpegdec: check that the coded dc_index and ac_index have a valid associated ↵Reimar Döffinger2009-07-04
| | | | | | | | | | VLC table. Removes some disabled dc_index/ac_index checking code that seems to have had some undocumented issues and should not really be necessary anymore now. Fixes from issue 1240 the files mjpeg/smclockmjpeg.avi.1.10 and mjpeg/smclockmjpeg.avi.1.171. Originally committed as revision 19341 to svn://svn.ffmpeg.org/ffmpeg/trunk
* honor restart interval in mjpeg, fix #861, SpectralFan.mov still decodes ↵Baptiste Coudurier2009-05-25
| | | | | | correctly Originally committed as revision 18937 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add a chroma_sample_location field to define positioning of chroma samplesDavid Conrad2009-05-11
| | | | Originally committed as revision 18795 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove unused variables from ff_mjpeg_decode_sos() found by CSA.Michael Niedermayer2009-04-17
| | | | Originally committed as revision 18548 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement avcodec_decode_video2(), _audio3() and _subtitle2() which takes anThilo Borgmann2009-04-07
| | | | | | | | | | | 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
* Use full internal pathname in doxygen @file directives.Diego Biurrun2009-02-01
| | | | | | | Otherwise doxygen complains about ambiguous filenames when files exist under the same name in different subdirectories. Originally committed as revision 16912 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: Remove pointless period after copyright statement non-sentences.Diego Biurrun2009-01-19
| | | | Originally committed as revision 16684 to svn://svn.ffmpeg.org/ffmpeg/trunk
* remove ff_get_fourcc() and use AV_RL32() insteadAurelien Jacobs2009-01-17
| | | | Originally committed as revision 16654 to svn://svn.ffmpeg.org/ffmpeg/trunk
* replace all occurrence of ENABLE_ by the corresponding CONFIG_, HAVE_ or ARCH_Aurelien Jacobs2009-01-14
| | | | | | and remove all ENABLE_ definitions. Originally committed as revision 16600 to svn://svn.ffmpeg.org/ffmpeg/trunk
* clear_block mmxLoren Merritt2008-12-10
| | | | Originally committed as revision 16045 to svn://svn.ffmpeg.org/ffmpeg/trunk
* fix progressive jpeg:Loren Merritt2008-12-10
| | | | | | | | support refinement passes remove intermediate clipping remove redundant idct Originally committed as revision 16044 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace apparently always true condition by assert().Michael Niedermayer2008-09-27
| | | | Originally committed as revision 15437 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Simplify pix_fmt_id instead of listing a subset of non-simplified ones.Michael Niedermayer2008-09-27
| | | | Originally committed as revision 15436 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Check the 4th plane too when selecting the pixfmt.Michael Niedermayer2008-09-27
| | | | | | Fixes a crash with Test-4-component-YCCK.jpg. Originally committed as revision 15435 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Return an error when ff_jpegls_decode_picture fails.Mathieu Malaterre2008-08-04
| | | | | | Patch by Mathieu Malaterre: name.surname at gmail Originally committed as revision 14535 to svn://svn.ffmpeg.org/ffmpeg/trunk