summaryrefslogtreecommitdiff
path: root/libavcodec/4xm.c
Commit message (Collapse)AuthorAge
* 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: AV-prefix all codec flagsVittorio Giovara2015-07-27
| | | | | | Convert doxygen to multiline and express bitfields more simply. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* 4xm: more thorought check for negative index and negative shiftVittorio Giovara2014-11-13
| | | | | CC: libav-stable@libav.org Bug-Id: CID 1087094
* 4xm: drop unnecessary checkVittorio Giovara2014-11-11
| | | | | | | data_size is always >= 0 in this case. CC: libav-stable@libav.org Bug-Id: CID 1238788
* dsputil: Split bswap*_buf() off into a separate contextDiego Biurrun2014-06-22
|
* dsputil: Split clear_block*/fill_block* off into a separate contextDiego Biurrun2014-06-18
|
* avcodec: more correct printf specifiersDiego Biurrun2014-03-22
|
* 4xm: replace forcing EMU_EDGE by a copyAnton Khirnov2014-01-06
| | | | | | | | | | | The decoder currently sets CODEC_FLAG_EMU_EDGE and relies on get_buffer2() to always provide buffers with linesize == 2 * width. This is wrong, since we place no such restriction on get_buffer2() implementations. Fix this by decoding into internal buffers and copying them to output frames. Since this is a very obscure decoder, the performance hit should not be an issue.
* 4xm: return a proper error code.Anton Khirnov2014-01-06
|
* cosmetics: Group .name and .long_name together in codec/format declarationsDiego Biurrun2013-10-03
|
* 4xm: Reject not a multiple of 16 dimensionLuca Barbato2013-07-23
| | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* 4xm: check bitstream_size boundary before using itLuca Barbato2013-06-12
| | | | | | | Prevent buffer overread. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* 4xm: refactor decode_p_blockLuca Barbato2013-06-12
| | | | | | Directly return from code 1, 2 and 6 codepaths and simplify the remaining one to have a single overflow check and a single call to mcdc.
* 4xm: do not overread the source buffer in decode_p_blockLuca Barbato2013-06-12
| | | | | | | Check for out of picture macroblocks before calling mcdc. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* 4xm: do not overread the prestream bufferLuca Barbato2013-06-12
| | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* 4xm: validate the buffer size before parsing itLuca Barbato2013-06-12
| | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* 4xm: reject frames not compatible with the declared versionLuca Barbato2013-06-12
| | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* 4xm: drop pointless assertLuca Barbato2013-06-12
| | | | Make sure the value of wlog2 is always between 0 and 3.
* 4xm: forward errors from decode_p_blockLuca Barbato2013-06-12
| | | | | | | Partially mitigate out of memory writes. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* 4xm: fold last_picture lazy allocation in decode_p_frameLuca Barbato2013-06-12
|
* 4xm: refactor fourxm_read_headerLuca Barbato2013-06-12
| | | | Split sound and video tag parsing in separate functions.
* 4xm: use the correct logging contextLuca Barbato2013-06-12
|
* Remove commented-out debug #define cruftDiego Biurrun2013-05-16
|
* lavc decoders: work with refcounted frames.Anton Khirnov2013-03-08
|
* 4xm: check the return value of read_huffman_tables().Anton Khirnov2013-02-23
| | | | CC:libav-stable@libav.org
* 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>
* 4xm: operate with pointers to AVFrames instead of whole structs.Anton Khirnov2013-01-06
| | | | This is more correct and avoids breaking extended_data.
* 4xm: eliminate a pointless indirectionAnton Khirnov2013-01-06
|
* 4xm: simplify code with FFSWAPAnton Khirnov2013-01-06
|
* 4xm: return meaningful error codesAnton Khirnov2013-01-06
|
* 4xm: don't rely on get_buffer() initializing the frame.Anton Khirnov2012-12-23
|
* miscellaneous typo fixesDiego Biurrun2012-12-21
|
* 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.
* Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormatAnton Khirnov2012-10-08
|
* Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov2012-08-07
|
* 4xm: fix invalid array indexingMans Rullgard2012-04-29
| | | | | | Indexing outside arrays is invalid and breaks with gcc 4.8. 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.
* 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>
* 4xm, timefilter: K&R formatting cosmeticsYordan Makariev2012-02-10
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* cosmetics: Remove extra newlines at EOFAlex Converse2012-01-27
|
* 4xm: Prevent buffer overreads.Aneesh Dogra2012-01-05
| | | | | | | 4xm decoder while decoding i2 frames can overread the buffer if proper checks are not made. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Revert "4xm: Prevent buffer overreads."Ronald S. Bultje2012-01-04
| | | | | This reverts commit 295a7c0238e84b0ffa8f21ed938d45f51f54a4cd. The patch breaks decoding of regular files (e.g. fate-4xm-2).
* 4xm: Prevent buffer overreads.Aneesh Dogra2012-01-04
| | | | | | | 4xm decoder while decoding i2 frames can overread the buffer if proper checks are not made. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* 4xm: pass the correct remaining buffer size to decode_i2_frame().Aneesh Dogra2012-01-04
| | | | | | | frame_size is the number of bytes left in the packet, so if we are passing buf-4 we can safely read frame_size+4 bytes. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* 4xm: fix calculation of the next output line position in decode_i2_frame().Aneesh Dogra2012-01-04
| | | | | | The current code doesn't work unless width is an exact multiple of 16. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* 4xm: remove unused variables.Anton Khirnov2011-12-23
|
* 4xm: Add a check in decode_i_frame to prevent buffer overreadsShitiz Garg2011-12-22
| | | | | | Fixes bugzilla #135 Signed-off-by: Janne Grunau <janne-libav@jannau.net>