summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* 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.
* snow: split snow in snowdec and snowencLuca Barbato2011-11-24
| | | | | The common non inlined code goes in snow.c, the common inlined code in snow.h, tables move in snowdata.h (included only by snow.c)
* tiffenc: deprecate using compression_levelAnton Khirnov2011-11-24
|
* h264: add support for decoding planar RGB images.Ronald S. Bultje2011-11-24
|
* pcmdec: remove unneeded resetting of samples pointerJustin Ruggles2011-11-23
|
* bethsoftvideo: return proper consumed size for palette packets.Anton Khirnov2011-11-23
| | | | Also check for sufficient packet size.
* tiffenc: add a private option for selecting compression algorithmAnton Khirnov2011-11-23
|
* ARM: remove needless .text/.align directivesMans Rullgard2011-11-23
| | | | | | | The 'function' macro already includes the appropriate directives. Signed-off-by: Mans Rullgard <mans@mansr.com>
* aacdec: Fix PS in ADTS.Alex Converse2011-11-22
| | | | Fixes File1.aac and Bug 80.
* dsputil: use cpuflags in x86 emu_edge_coreJustin Ruggles2011-11-22
| | | | avoids passing around the extra argument among all the macros it uses
* dsputil: use movups instead of movdqu in ff_emu_edge_core_sse()Justin Ruggles2011-11-22
| | | | | This allows emulated_edge_mc_sse() and gmc_sse() to be used under AV_CPU_FLAG_SSE.
* wma: initialize prev_block_len_bits, next_block_len_bits, and block_len_bits.Justin Ruggles2011-11-22
| | | | | | | | The initial values are not checked against the number of block sizes. Initializing them to frame_len_bits will result in a block size index of 0 in these cases instead of something that might be out-of-range. Fixes Bug 81.
* Add libavutil/mathematics.h #includes for INFINITYMans Rullgard2011-11-22
| | | | | | This fixes build errors in some environments. Signed-off-by: Mans Rullgard <mans@mansr.com>
* doxy: introduce an empty structure in libavcodecLuca Barbato2011-11-22
|
* ARM: add explicit .arch and .fpu directives to asm.SMans Rullgard2011-11-22
| | | | | | | | | | | | | This prevents build errors when compiler and assembler default targets differ. Ideally each file would declare the highest level it requires. This is however not easily possible as it complicates assembling pre-armv6t2 code in Thumb-2 mode. HAVE_NEON is used as indicator for ARMv7-A since no other symbol exists for this and NEON is only available in this variant. Signed-off-by: Mans Rullgard <mans@mansr.com>
* pthread: do not touch has_b_framesJanne Grunau2011-11-22
| | | | | | | | | | | | | | | | | | Adding the thread count in frame level multithreading to has_b_frames as an additional delay causes more problems than it solves. For example inconsistent behaviour during timestamp calculation in libavformat. Thread count and frame level multithreading are both set by the user. If the additional delay caused by frame level multithreading needs to be considered in the calling code it has all information to take it into account. Should it become necessary to calculate a maximum delay inside libavcodec it should be exported as its own field and not reusing an existing field. Based on a patch by Michael Niedermayer. Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* pthread: add some malloc failure checksJustin Ruggles2011-11-21
|
* avcodec: move some AVCodecContext fields to an internal struct.Justin Ruggles2011-11-19
| | | | | | | | A new field, AVCodecContext.internal is used to hold a new struct AVCodecInternal, which has private fields that are not codec-specific and are used by general libavcodec functions. Moved internal_buffer, internal_buffer_count, and is_copy.
* avcodec: use av_opt_set() instead of deprecated av_set_string3()Justin Ruggles2011-11-19
|
* avcodec: fix some const warningsJustin Ruggles2011-11-19
| | | | | | | libavcodec/options.c:583: warning: assignment discards qualifiers from pointer target type libavcodec/options.c:589: warning: initialization discards qualifiers from pointer target type
* avcodec: remove pointless AVOption, internal_buffer_countJustin Ruggles2011-11-19
|
* cinepack: return non-generic errorsLuca Barbato2011-11-18
|
* cinepak: remove redundant coordinate checksMichael Niedermayer2011-11-18
| | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Martin Storsjö <martin@martin.st>
* cinepak: check strip_sizeMichael Niedermayer2011-11-18
| | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Martin Storsjö <martin@martin.st>
* cinepak, simplify, use AV_RB24()Michael Niedermayer2011-11-18
| | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Martin Storsjö <martin@martin.st>
* cinepak: simplify, use FFMIN()Michael Niedermayer2011-11-18
| | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Martin Storsjö <martin@martin.st>
* cinepak: Fix division by zero, ask for sample if encoded_buf_size is 0Michael Niedermayer2011-11-18
| | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Martin Storsjö <martin@martin.st>
* vp5: Fix illegal read.Alex Converse2011-11-17
| | | | Found with Address Sanitizer
* vp6: Fix illegal read.Thierry Foucu2011-11-17
| | | | | | Found with Address Sanitizer Signed-off-by: Alex Converse <alex.converse@gmail.com>
* mpegaudiodec: Don't use a nonexistent log context for av_dlogMartin Storsjö2011-11-16
| | | | | | | This fixes builds with DEBUG defined, broken since 1158745a2d12966c58e83b66243a42f20190812e. Signed-off-by: Martin Storsjö <martin@martin.st>
* cinepak: Add another special case so that it can handle the following file:Mike Melanson2011-11-16
| | | | | | | | | | | http://samples.mplayerhq.hu/V-codecs/CVID/bad_cinepak_frame_size.mov This fix works around another work around which handles a different type of odd Cinepak data. Thanks to Matthew Hoops (clone2727 - gmail.com) for the sample and fix. Signed-off-by: Martin Storsjö <martin@martin.st>
* lagarith: add some RGBA decoding supportKostya Shishkov2011-11-16
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* lagarith: Add correct line prediction for RGBNathan Caldwell2011-11-16
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* cosmetics: indentationJustin Ruggles2011-11-15
|
* mpegaudiodec: init static tables in AVCodec.init_static_data()Justin Ruggles2011-11-15
|
* binkvideo: simplify and remove invalid shiftsMans Rullgard2011-11-14
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* hwaccel: OS X Video Decoder Acceleration (VDA) support.Sebastien Zwickert2011-11-14
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* vble: remove vble_error_closeJanne Grunau2011-11-11
| | | | | | It does not make much sense to factor the error handling to its own av_always_inline function. Fixes "format not a string literal and no format arguments" warning in the av_log.
* VBLE DecoderDerek Buitenhuis2011-11-11
| | | | | | | | | Add a decoder for the VBLE Lossless Codec, which still has a cult following. Used to be popular several years ago on doom9. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Martin Storsjö <martin@martin.st>
* tta: use an integer instead of a pointer to iterate output samplesJustin Ruggles2011-11-11
|
* shorten: do not modify samples pointer when interleavingJustin Ruggles2011-11-11
|
* mpc7: only support stereo input.Justin Ruggles2011-11-11
| | | | The Musepack SV7 reference encoder converts mono to stereo when encoding.
* dpcm: do not try to decode empty packetsJustin Ruggles2011-11-11
|
* dpcm: remove unneeded buf_size==0 check.Justin Ruggles2011-11-11
| | | | It is already checked in avcodec_decode_audio3()
* twinvq: add SSE/AVX optimized sum/difference stereo interleavingJustin Ruggles2011-11-11
|
* vqf/twinvq: pass vqf COMM chunk info in extradataJustin Ruggles2011-11-11
| | | | | | This is needed because the twinvq decoder cannot rely on bit_rate to be set. The API documentation says that bit_rate is set by libavcodec, not by the user.
* twinvq: check for allocation failure in init_mdct_win()Justin Ruggles2011-11-11
|
* mpc7: Fix memset call in mpc7_decode_frame functionAlex Converse2011-11-10
|