summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* dca: Replace oversized unused get_bits() with skip_bits_long().Alex Converse2011-11-27
|
* vc1: use an enum for Frame Coding ModeLuca Barbato2011-11-28
| | | | Document it a little and possibly fix a bug in dxva2_vc1.
* indeo3: error out if no motion vector is set.Aneesh Dogra2011-11-27
| | | | | | This fixes a crash on a corrupt bitstream (bugzilla #93). Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* mpegaudio: do not use init_static_data() for initializing tables.Justin Ruggles2011-11-27
| | | | | It is called once for each mpegaudio codec that is registered, which adds significant overhead.
* wmavoice: Make format string match variable type.Alex Converse2011-11-26
|
* vc1: select interlaced scan table by FCM elementKostya Shishkov2011-11-26
| | | | | | | Interlaced videos can contain progressive frames too and now wrong scantable is selected for them. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* pthread: track thread existence in a separate variable.Cheng Sun2011-11-26
| | | | | | | | This fixes a compile error on mingw32 when using p->thread directly (as if it were a pointer) to track thread existence, because the type is opaque and may be a non-pointer. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* snow: fix integer overflowsMans Rullgard2011-11-26
| | | | | | | The way these values are used, they should have an unsigned type. A similar change was made for mpegvideo in cb66847. Signed-off-by: Mans Rullgard <mans@mansr.com>
* svq1enc: remove stale altivec-related hackMans Rullgard2011-11-26
| | | | | | | altivec.h is no longer (indirectly) included, so this hack is not needed. Signed-off-by: Mans Rullgard <mans@mansr.com>
* snow: fix signed overflow in byte to 32-bit replicationMans Rullgard2011-11-26
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* adx: rename ff_adx_decode_header() to avpriv_adx_decode_header()Justin Ruggles2011-11-26
| | | | | It is used by the ADX decoder, and therefore needs to be exported in order to work with shared libs.
* avformat: add CRI ADX format demuxerJustin Ruggles2011-11-26
|
* adx: add an ADX parser.Justin Ruggles2011-11-26
| | | | | | This simplifies the decoder so it doesn't have to process an in-packet header or handle arbitrary-sized packets. It also fixes decoding of files with large headers.
* adx: move header decoding to ADX common codeJustin Ruggles2011-11-26
|
* adx: calculate the number of blocks in a packetJustin Ruggles2011-11-26
|
* adx: define and use 2 new macro constants BLOCK_SIZE and BLOCK_SAMPLESJustin Ruggles2011-11-26
|
* adx: check for unsupported ADX formatsJustin Ruggles2011-11-26
|
* adx: simplify encoding by using put_sbits()Justin Ruggles2011-11-26
|
* adx: calculate correct LPC coeffsJustin Ruggles2011-11-26
| | | | | | Instead of using fixed coefficients, the correct way is to calculate the coefficients using the highpass cutoff frequency from the ADX stream header and the sample rate.
* adx: use 12-bit coefficients instead of 14-bit to avoid integer overflowJustin Ruggles2011-11-26
|
* adx: simplify adx_decode() by using get_sbits() to read residual samplesJustin Ruggles2011-11-26
|
* adx: fix the data offset parsing in adx_decode_header()Justin Ruggles2011-11-26
| | | | | first 2 bytes are 0x80, 0x00. offset is only 16-bit. this is according to format descriptions on multimedia wiki and wikipedia.
* adx: remove unneeded post-decode channel interleavingJustin Ruggles2011-11-26
| | | | instead interleave channels while decoding
* adx: validate header valuesJustin Ruggles2011-11-26
|
* adx: cosmetics: general pretty-printing and comment clean-upJustin Ruggles2011-11-26
|
* adx: remove useless commentsJustin Ruggles2011-11-26
|
* adx: change short to int16_tJustin Ruggles2011-11-26
|
* adx: rename struct PREV to ADXChannelStateJustin Ruggles2011-11-26
|
* dnxhdenc: fix signed overflowsMans Rullgard2011-11-26
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* dv: simplify bitstream splicing in dv_decode_ac()Mans Rullgard2011-11-26
| | | | | | This is simpler and fixes some overflow checker warnings. Signed-off-by: Mans Rullgard <mans@mansr.com>
* s3tc: fix shift overflow by using unsigned constantMans Rullgard2011-11-26
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* svq1enc: fix signed multiplication overflowMans Rullgard2011-11-26
| | | | | | | | This multiplication can overflow the signed range but not the unsigned. After right-shifting it will thus fit in the signed range again. Signed-off-by: Mans Rullgard <mans@mansr.com>
* svq1dec: use sign_extend()Mans Rullgard2011-11-26
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* rv34: fix signed multiplication overflowMans Rullgard2011-11-26
| | | | | | | Multiply by unsigned 0x01010101 to replicate bytes into 32-bit word. Signed-off-by: Mans Rullgard <mans@mansr.com>
* [PATCH] Fix crash when initializing multi-threaded decoding for corrupted file.Cheng Sun2011-11-26
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* cook: use a table for xor key rotationMans Rullgard2011-11-26
| | | | | | | This is simpler and avoids an invalid shift by 32 in the aligned case. Signed-off-by: Mans Rullgard <mans@mansr.com>
* apedec: fix signed integer overflowsMans Rullgard2011-11-26
| | | | | | | This bit manipulation is equivalent but avoids undefined shifts and overflows. Signed-off-by: Mans Rullgard <mans@mansr.com>
* qtrle: simplify 32-bit decode using intreadwrite macrosMans Rullgard2011-11-26
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* gif: fix invalid signed shiftsMans Rullgard2011-11-26
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* rtjpeg: simplify get_block() by using get_bits_left.Reimar Döffinger2011-11-26
| | | | | Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* rtjpeg: check get_block return value for error.Reimar Döffinger2011-11-26
| | | | | | This avoids crashes due to reading out-of-bounds. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* nuv: check per-frame header for validity.Reimar Döffinger2011-11-26
| | | | | | | Since it contains dimensions parsing an invalid one has rather annoying effects. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* nuv: use FFALIGN.Reimar Döffinger2011-11-26
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* flicvideo: check extradata_size before accessing extradata.Carl Eugen Hoyos2011-11-26
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* fraps: check for overread.Michael Niedermayer2011-11-26
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* cook: fix apparent typo in extradata parsingK.Y.H2011-11-26
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavc: update doxy to use nondeprecated API.Anton Khirnov2011-11-26
|
* Make channel layout masks unsignedMans Rullgard2011-11-25
| | | | | | | | | | It makes more sense for a bit mask to use an unsigned type. The change should be source and binary compatible on all supported systems, hence micro version bump. Fixes a few invalid shifts. Signed-off-by: Mans Rullgard <mans@mansr.com>
* dca: ARMv6 optimised decode_blockcode()Mans Rullgard2011-11-25
| | | | | | | | | This is a hand-tuned version of the code with impossible parts of the FASTDIV function ommitted. 2-5% faster overall on Cortex-A8. Signed-off-by: Mans Rullgard <mans@mansr.com>
* frame-mt: return consumed packet size in ff_thread_decode_frameJanne Grunau2011-11-25
| | | | | This is required to fulfill avcodec_decode_video2() promise to return the number of consumed bytes on success.