summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* 8bps: K&R formatting cosmeticsPaul B Mahol2012-01-26
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* smacker: Sanity check huffman tables found in the headers.Alex Converse2012-01-26
| | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* smacker: remove dead storeAlex Converse2012-01-26
|
* qdm2: Check data block size for bytes to bits overflow.Alex Converse2012-01-26
| | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* vc1: always read the bfraction element for interlaced fieldsHendrik Leppkes2012-01-26
| | | | | | | Previously, it would not be read if refdist_flag was not set, however according to the spec and the reference decoder, it should always be read. Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* wma: Clip WMA1 and WMA2 frame length to 11 bits.Alex Converse2012-01-25
| | | | | | | | | | | | The MDCT buffers in the decoder are only sized for up to 11 bits. The reverse engineered documentation for WMA1/2 headers say that that for all samplerates above 32kHz 11 bits are used. 12 and 13 bit support were added for WMAPro. I was unable to make any Microsoft tools generate a test file at a samplerate above 48kHz. Discovered by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* rv20: prevent calling ff_h263_decode_mba() with unset height/widthJanne Grunau2012-01-25
| | | | | | | Prevents a crash of VLC during playback of a invalid matroska file, found by John Villamil <johnv@matasano.com>. CC: libav-stable@libav.org
* build: Automatically include architecture-specific library Makefile snippets.Diego Biurrun2012-01-25
|
* indeo5: prevent null pointer dereference on broken filesJanne Grunau2012-01-25
| | | | Found by John Villamil <johnv@matasano.com>
* cosmetics: Remove some unnecessary block braces.Diego Biurrun2012-01-25
|
* dsputil: use vertical component for drawing bottom edge.Ronald S. Bultje2012-01-25
| | | | | Current code only writes 8 pixels of vertical edge for YUV422, which causes MC artifacts when subsequent frames use data from that edge.
* aacenc: Fix identification padding when the bitstream is already aligned.Alex Converse2012-01-24
|
* aacenc: Write correct length for long identification strings.Michael Niedermayer2012-01-24
| | | | | | | When the length is the escape value (15), the new length is calculated by 15 + get_bits(8) - 1. Signed-off-by: Alex Converse <alex.converse@gmail.com>
* adpcm_ima_ws: fix stereo decodingJustin Ruggles2012-01-24
| | | | | Stereo ADPCM IMA WS is planar for VQA version 3 and 2-sample interleaved for VQA version 2.
* avcodec: add a new codec_id for CRYO APC IMA ADPCM.Justin Ruggles2012-01-24
| | | | | The stereo layout and extradata is significantly different from that in Westwood IMA ADPCM, so a separate codec_id is warranted.
* lavc: postpone the removal of AVCodecContext.request_channels.Anton Khirnov2012-01-24
| | | | | | Although it has been deprecated for a long time, its intended replacement (request_channel_layout) is not actually used anywhere, so request_channels is currently the only way to access that functionality.
* lavc: postpone removing old audio encoding and decoding APIAnton Khirnov2012-01-24
| | | | It has been deprecated only recently.
* rv10: verify slice offsets against buffer sizeJanne Grunau2012-01-24
| | | | Found by John Villamil <johnv@matasano.com> in fuzzed rv20 in mkv files.
* aacenc: Simplify windowingNathan Caldwell2012-01-23
| | | | Signed-off-by: Alex Converse <alex.converse@gmail.com>
* aacenc: Move saved overlap samples to the beginning of the same buffer as ↵Nathan Caldwell2012-01-23
| | | | | | incoming samples. Signed-off-by: Alex Converse <alex.converse@gmail.com>
* aacenc: Deinterleave input samples before processing.Nathan Caldwell2012-01-23
| | | | Signed-off-by: Alex Converse <alex.converse@gmail.com>
* aacenc: Store channel count in AACEncContext.Nathan Caldwell2012-01-23
| | | | Signed-off-by: Alex Converse <alex.converse@gmail.com>
* aacenc: Move Q^3/4 calculation to it's own tableNathan Caldwell2012-01-23
| | | | | | This should be moved to tablegen at some point. Signed-off-by: Alex Converse <alex.converse@gmail.com>
* aacenc: Request normalized float samples instead of converting s16 samples ↵Nathan Caldwell2012-01-23
| | | | | | to float. Signed-off-by: Alex Converse <alex.converse@gmail.com>
* aacpsy: Replace an if with FFMAX in LAME windowing.Nathan Caldwell2012-01-23
| | | | Signed-off-by: Alex Converse <alex.converse@gmail.com>
* aacenc: cosmetics, replace 'rd' with 'bits' in codebook_trellis_rate to make ↵Nathan Caldwell2012-01-23
| | | | | | it more clear what is being calculated. Signed-off-by: Alex Converse <alex.converse@gmail.com>
* aacpsy: cosmetics, change a FIXME to a NOTE about subshort comparisonsNathan Caldwell2012-01-23
| | | | | | Also fix a typo. Signed-off-by: Alex Converse <alex.converse@gmail.com>
* aacenc: cosmetics: move init() and end() to the bottom of the file.Nathan Caldwell2012-01-23
| | | | Signed-off-by: Alex Converse <alex.converse@gmail.com>
* aacenc: aac_encode_init() cleanupNathan Caldwell2012-01-23
| | | | | | Macroify sanity checks and check return values of allocs and other functions. Signed-off-by: Alex Converse <alex.converse@gmail.com>
* XWD encoder and decoderPaul B Mahol2012-01-23
| | | | Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* vc1: don't read the interpfrm and bfraction elements for interlaced framesHendrik Leppkes2012-01-23
| | | | | | | This matches the spec as well as the reference decoder, and fixes a bug with interlaced frame decoding. Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* pam: Fix a typo that broke writing and reading PAM files.Carl Eugen Hoyos2012-01-22
| | | | | | Reported and reviewed by Derek Buitenhuis. Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* threads: change the default for threads back to 1Janne Grunau2012-01-21
| | | | | | Using threaded decoding by default breaks backward compatibility if AVHWAccel is used or if an appliction sets threadunsafe callbacks. Avconv and avplay still use -threads auto if not specified.
* threads: update slice_count and slice_offset from user contextJanne Grunau2012-01-21
| | | | | They are used to signal the number of slices and offsets of each slice out of band to the decoder.
* mpegaudiodec: switch error detection check to AV_EF_BUFFERDustin Brody2012-01-21
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavc: rename err_filter option to err_detect and document itDustin Brody2012-01-21
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* mpegvideo: fix invalid memory access for small video dimensionsJohn Brooks2012-01-21
| | | | | | | | | | When either video dimension is only one macroblock, subtractions based on v_edge_pos and the macroblock size may be negative. In that situation, an unsigned comparison isn't sufficent to test for MV overruns, because a limit of (unsigned)-1 will let any other value pass. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* ARM: fix build with FFT enabled and MDCT disabledFelipe Contreras2012-01-20
| | | | | Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Mans Rullgard <mans@mansr.com>
* mpeg12: check for available bits to avoid an infinite loopJindřich Makovička2012-01-19
| | | | | Signed-off-by: Jindrich Makovicka <makovick@gmail.com> Signed-off-by: Diego Biurrun <diego@biurrun.de>
* error_resilience: K&R formatting cosmeticsDonald Ovcharov2012-01-18
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* tta: cast output data pointer to the correct typeJustin Ruggles2012-01-17
| | | | fixes "warning: assignment from incompatible pointer type"
* rv34: add NEON rv34_idct_addJanne Grunau2012-01-16
| | | | | | | Overall almost 4% faster, idct_add down from 350 to 85 cycles, idct_dc_add down from 83 to 30 cycles. squash: rv34 idct rearrange partial register loads
* rv34: 1-pass inter MB reconstructionChristophe GISQUET2012-01-16
| | | | Implement 1-pass inverse transform and reconstruction for inter blocks.
* pictordec: Use bytestream2 functionsLaurentiu Ion2012-01-15
| | | | Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* pcmenc: use AVCodec.encode2()Justin Ruggles2012-01-15
|
* avcodec: bump minor version and add APIChanges for the new audio encoding APIJustin Ruggles2012-01-15
|
* avcodec: Add avcodec_encode_audio2() as replacement for avcodec_encode_audio()Justin Ruggles2012-01-15
| | | | | | | | This allows audio encoders to optionally take an AVFrame as input and write encoded output to an AVPacket. This also adds AVCodec.encode2() which will also be usable by video and subtitle encoders once support is implemented in the public functions.
* avcodec: add a public function, avcodec_fill_audio_frame().Justin Ruggles2012-01-15
| | | | This is a convenience function for the user to fill audio AVFrame information.
* rv34: Intra 16x16 handlingChristophe GISQUET2012-01-16
| | | | | | | Extract processing of intra 16x16 blocks from intra macroblock processing. Also implement a function performing inverse transform and block reconstruction for DC-only blocks in 1 pass instead of 2.
* rv34: Inter/intra MB code splitChristophe GISQUET2012-01-16
| | | | | | | | Split inter/intra macroblock handling code. This will allow further optimizations such as performing inverse transform and block reconstruction in a single pass as well as specialize code. Signed-off-by: Janne Grunau <janne-libav@jannau.net>