summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* flashsv: return more meaningful error valueDiego Biurrun2011-10-11
|
* flashsv: fix typo in av_log() messageDiego Biurrun2011-10-11
|
* smacker: validate channels and sample format.Justin Ruggles2011-10-11
|
* smacker: check buffer size before reading output sizeJustin Ruggles2011-10-11
|
* smacker: validate number of channelsJustin Ruggles2011-10-11
|
* h264: fix detection of optional trailing PPS elementsMans Rullgard2011-10-11
| | | | | | | | | | | | | | The PPS may contain a few trailing elements whose presence is only signalled by data remaining after the the mandatory part has been parsed. The current code fails to take into account the rbsp_trailing_bits() when deciding whether to parse these optional elements. Assuming no unnecessary padding bytes are passed to this function, the optional elements are present if either more than 8 extra bits remain or the remaining bits do not form a valid rbsp_trailing_bits() after the mandatory PPS elements have been parsed. Signed-off-by: Mans Rullgard <mans@mansr.com>
* sipr: fix get_bits(0) callsMans Rullgard2011-10-11
| | | | | | Zero-length get_bits() is undefined, must check before calling. Signed-off-by: Mans Rullgard <mans@mansr.com>
* motion_est: make MotionExtContext.map_generation unsignedMans Rullgard2011-10-11
| | | | | | | | The way this value is used, it should be an unsigned type. While the numerical value has no meaning, unsigned wraparound is relied upon. Signed-off-by: Mans Rullgard <mans@mansr.com>
* h264: reset h->ref_count in case of errors in ↵Laurent Aimar2011-10-10
| | | | | | ff_h264_decode_ref_pic_list_reordering() Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* error_resilience: fix the check for missing references in ff_er_frame_end() ↵Laurent Aimar2011-10-10
| | | | | | for H264 Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* 4xm: prevent NULL dereference with invalid huffman tableLaurent Aimar2011-10-10
| | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* 4xm: clear FF_INPUT_BUFFER_PADDING_SIZE bytes in temporary buffersLaurent Aimar2011-10-10
| | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* ptx: check for out of bound readsLaurent Aimar2011-10-10
| | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* tiffdec: fix out of bound reads/writesLaurent Aimar2011-10-10
| | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* eacmv: check for out of bound readsLaurent Aimar2011-10-10
| | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* eacmv: fix potential pointer arithmetic overflowsLaurent Aimar2011-10-10
| | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* adpcm: fix out of bound reads due to integer overflowLaurent Aimar2011-10-10
| | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* anm: prevent infinite loopLaurent Aimar2011-10-10
| | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* avs: check for out of bound readsLaurent Aimar2011-10-10
| | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* dnxhddec: handle cid change in bitstream.Baptiste Coudurier2011-10-10
|
* vc1: K&R reformatting cosmeticsKostya Shishkov2011-10-10
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* ra288: log an error message when output buffer is too small.Justin Ruggles2011-10-10
| | | | also return AVERROR(EINVAL) instead of -1.
* ra288: use a more descriptive calculation for output data sizeJustin Ruggles2011-10-10
|
* ra144: use macro constants to make the code more understandable.Justin Ruggles2011-10-10
|
* ra144dec: log an error message when output buffer is too small.Justin Ruggles2011-10-10
| | | | also return AVERROR(EINVAL) instead of -1.
* ra144dec: use a more descriptive calculation for output data sizeJustin Ruggles2011-10-10
|
* lavc: Micro version bump for VC1 interlaced decoding supportMashiat Sarker Shakkhar2011-10-10
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* vc1dec: interlaced stream decoding support 3/3Mashiat Sarker Shakkhar2011-10-10
| | | | | | Cosmetics: break some lines and reformat TODOs Signed-off-by: Anton Khirnov <anton@khirnov.net>
* vc1dec: interlaced stream decoding support 2/3Mashiat Sarker Shakkhar2011-10-10
| | | | | | Cosmetics: reformat some data tables in vc1data.c Signed-off-by: Anton Khirnov <anton@khirnov.net>
* vc1dec: interlaced stream decoding support 1/3Mashiat Sarker Shakkhar2011-10-10
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* vaapi: Fix VC-1 decoding (reconstruct bitstream TTFRM correctly).Gwenole Beauchesne2011-10-10
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* mpeg4dec: use unsigned type for startcode in ff_mpeg4_decode_picture_headerMans Rullgard2011-10-09
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* mpeg124: use sign_extend() functionMans Rullgard2011-10-09
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* ac3dec: use get_sbits() instead of manually sign-extendingMans Rullgard2011-10-09
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* 4xm: fix signed overflowMans Rullgard2011-10-09
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* wmavoice: fix a signed overflowMans Rullgard2011-10-09
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* mpegvideo_enc: fix a signed overflowMans Rullgard2011-10-09
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* zmbv: remove memcpy() of decoded frameMans Rullgard2011-10-09
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* mpeg12enc: use sign_extend() functionMans Rullgard2011-10-09
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* h264pred: use unsigned types for pixel values, fix signed overflowsMans Rullgard2011-10-09
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* h264: fix signed overflows in x*0x01010101 expressionsMans Rullgard2011-10-09
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* h264pred: remove unused variablesMans Rullgard2011-10-09
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* vp8: fix signed overflowsMans Rullgard2011-10-08
| | | | | | | In addition to avoiding undefined behaviour, an unsigned type makes more sense for packing multiple 8-bit values. Signed-off-by: Mans Rullgard <mans@mansr.com>
* motion_est: fix some signed overflowsMans Rullgard2011-10-08
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* dca: fix signed overflow in shiftMans Rullgard2011-10-08
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* aacdec: fix undefined shiftsMans Rullgard2011-10-08
| | | | | | Since nnz can be zero, this is needed to avoid a shift by 32. Signed-off-by: Mans Rullgard <mans@mansr.com>
* bink: Check for various out of bound writesLaurent Aimar2011-10-08
| | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* bink: Check for out of bound writes when building treeLaurent Aimar2011-10-08
| | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* put_bits: fix invalid shift by 32 in flush_put_bits()Mans Rullgard2011-10-08
| | | | | | | | | If flush_put_bits() is called when the 32-bit buffer is empty, e.g. after writing a multiple of 32 bits, and invalid shift by 32 is performed. Since flush_put_bits() is called infrequently, this additional check should have negligible performance impact. Signed-off-by: Mans Rullgard <mans@mansr.com>
* mpc8: Check out of bound bands limitLaurent Aimar2011-10-07
| | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net>