aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
Commit message (Collapse)AuthorAgeFilesLines
* bmp: fix some 1bit samples.Carl Eugen Hoyos2011-12-041-4/+18
| | | | | | <= 8bpp BMP images always have palette. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* wavpack: Properly clip samples during lossy decodeDerek Buitenhuis2011-12-031-2/+9
| | | | | | | | When decoding lossy WavPack samples, they are supposed to be clipped, in order to be decoded correctly. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* zmbv.c: coding style clean-up.Nathan Adil Maxson2011-12-031-90/+101
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* xan.c: coding style clean-up.Nathan Adil Maxson2011-12-031-25/+28
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* mpegvideo.c: code cleanup - first 500 lines.Konstantin Todorov2011-12-031-135/+202
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* h264: fix frame reordering code.Ronald S. Bultje2011-12-033-22/+52
| | | | | Fixes fate-h264-conformance-{mr2_tandberg_e,mr3_tandberg_b} without requiring -strict 1.
* aac_latm: reconfigure decoder on audio specific config changesJanne Grunau2011-12-031-10/+15
|
* latmdec: fix audio specific config parsingJanne Grunau2011-12-035-20/+34
| | | | | | | | | Pass the correct size in bits to mpeg4audio_get_config and add a flag to disable parsing of the sync extension when the size is not known. Latm with AudioMuxVersion 0 does not specify the size of the audio specific config. Data after the audio specific config can be misinterpreted as sync extension resulting in random and wrong configs.
* Add avcodec_decode_audio4().Justin Ruggles2011-12-0263-766/+1583
| | | | | | Deprecate avcodec_decode_audio3(). Implement audio support in avcodec_default_get_buffer(). Implement the new audio decoder API in all audio decoders.
* avcodec: change number of plane pointers from 4 to 8 at next major bump.Justin Ruggles2011-12-026-34/+48
| | | | | | Add AV_NUM_DATA_POINTERS to simplify the bump transition. This will allow for supporting more planar audio channels without having to allocate separate pointer arrays.
* svq1dec: avoid undefined get_bits(0) callMans Rullgard2011-12-021-1/+2
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* ARM: h264dsp_neon cosmeticsMans Rullgard2011-12-021-313/+313
| | | | | | | | - Replace 'ip' with 'r12'. - Use correct size designators for vld1/vst1. - Whitespace fixes. Signed-off-by: Mans Rullgard <mans@mansr.com>
* ARM: make some NEON macros reusableJanne Grunau2011-12-023-61/+65
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* vp8: flush buffers on size changes.Aaron Colwell2011-12-021-3/+5
|
* Cleaned up alacenc.cNathan Adil Maxson2011-12-011-47/+54
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* h264: cap max has_b_frames at MAX_DELAYED_PIC_COUNT - 1.Ronald S. Bultje2011-12-011-1/+1
| | | | | This prevents frame allocation overflows, and fixed fate-h264-conformance-mr3_tandberg_b with 2 threads.
* ARM: fix indentation in ff_dsputil_init_neon()Mans Rullgard2011-12-011-41/+39
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* ARM: NEON put/avg_pixels8/16 cosmeticsMans Rullgard2011-12-011-57/+57
| | | | | | | This makes whitespace and register names consistent with the style used in more recent code. Signed-off-by: Mans Rullgard <mans@mansr.com>
* ARM: add remaining NEON avg_pixels8/16 functionsMans Rullgard2011-12-012-0/+75
|
* ARM: clean up NEON put/avg_pixels macrosMans Rullgard2011-12-011-69/+86
| | | | | | Although this adds a few lines, the macro calls are less convoluted. Signed-off-by: Mans Rullgard <mans@mansr.com>
* rv34: align temporary block of "dct" coefsMans Rullgard2011-12-011-2/+2
| | | | | | This is needed for optimised transforms. Signed-off-by: Mans Rullgard <mans@mansr.com>
* vble: use dsp.add_hfyu_median_prediction() this allows asm optimizations to ↵Michael Niedermayer2011-11-301-18/+16
| | | | | | | be used. Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vble: remove flags copy, its not used in any speed relevant code.Michael Niedermayer2011-11-301-3/+1
| | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vble: merge len and val arraysDerek Buitenhuis2011-11-301-19/+6
| | | | | | | | | | There's no reason to use two arrays for this. Based off commit 2fea60c60084c4e70d7cef128ea3bca5690ce465 to FFmpeg by Michael Niedermayer. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vble: remove unused variable len.Michael Niedermayer2011-11-301-2/+0
| | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* rv40: move loop filter to rv34dsp contextJanne Grunau2011-11-304-164/+176
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* indeo3: check per-plane data buffer against input buffer bounds.Aneesh Dogra2011-11-291-1/+3
| | | | | | Fixes : http://bugzilla.libav.org/show_bug.cgi?id=102 Signed-off-by: Alex Converse <alex.converse@gmail.com>
* pthread: don't increment index on zero-sized packets.Aaron Colwell2011-11-281-2/+1
| | | | | | | | The next call to decode() will update from an invalid index, which will either lead to a memcpy() where dest==src (2 threads), or lead to a crash (>2 threads). Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* txd: Fix order of operations.Alex Converse2011-11-281-1/+2
|
* Eliminate pointless 0/NULL initializers in AVCodec and similar declarations.Diego Biurrun2011-11-2810-19/+0
|
* indeo3: cosmeticsKostya Shishkov2011-11-281-1/+1
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* dca: Replace oversized unused get_bits() with skip_bits_long().Alex Converse2011-11-271-2/+2
|
* vc1: use an enum for Frame Coding ModeLuca Barbato2011-11-284-24/+35
| | | | Document it a little and possibly fix a bug in dxva2_vc1.
* indeo3: error out if no motion vector is set.Aneesh Dogra2011-11-271-0/+2
| | | | | | 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-272-11/+7
| | | | | 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-261-1/+1
|
* vc1: select interlaced scan table by FCM elementKostya Shishkov2011-11-261-4/+4
| | | | | | | 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-261-2/+4
| | | | | | | | 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-262-4/+6
| | | | | | | 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-261-4/+0
| | | | | | | 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-261-2/+2
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* adx: rename ff_adx_decode_header() to avpriv_adx_decode_header()Justin Ruggles2011-11-264-8/+9
| | | | | 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-261-0/+1
|
* adx: add an ADX parser.Justin Ruggles2011-11-266-60/+153
| | | | | | 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-263-36/+74
|
* adx: calculate the number of blocks in a packetJustin Ruggles2011-11-261-2/+11
|
* adx: define and use 2 new macro constants BLOCK_SIZE and BLOCK_SAMPLESJustin Ruggles2011-11-261-14/+17
|
* adx: check for unsupported ADX formatsJustin Ruggles2011-11-261-0/+6
|
* adx: simplify encoding by using put_sbits()Justin Ruggles2011-11-261-3/+6
|
* adx: calculate correct LPC coeffsJustin Ruggles2011-11-265-14/+70
| | | | | | 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.