summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* cavs parser: fix parser context typeRafaël Carré2012-02-10
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* 4xm, timefilter: K&R formatting cosmeticsYordan Makariev2012-02-10
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* h264: disallow constrained intra prediction modes for luma.Ronald S. Bultje2012-02-09
| | | | | | | | | | | Conversion of the luma intra prediction mode to one of the constrained ("alzheimer") ones can happen by crafting special bitstreams, causing a crash because we'll call a NULL function pointer for 16x16 block intra prediction, since constrained intra prediction functions are only implemented for chroma (8x8 blocks). Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* dv: Move tables from dvdata.h to dvdata.cAlex Converse2012-02-09
|
* dv: Move a table used only by the demuxer out of a shared header.Alex Converse2012-02-09
|
* dv: Move functions used only by the encoder out of a shared header.Alex Converse2012-02-09
|
* dv: Split dvdata.h into dvdata.h and dvquant.hAlex Converse2012-02-09
|
* avcodec: set avpkt->size to 0 if encode2() did not output a packetJustin Ruggles2012-02-09
|
* avcodec: for audio encoding, set packet dts to packet pts.Justin Ruggles2012-02-09
| | | | There are no audio encoders which do frame reordering.
* ac3dsp: do not use pshufb in ac3_extract_exponents_ssse3()Justin Ruggles2012-02-09
| | | | | | | We need to do unsigned saturation in order to cover the corner case when the absolute coefficient value is 16777215 (the maximum value). Fixes Bug #216
* ac3dec: Move center and surround mix level tables to the parser.Michael Niedermayer2012-02-09
| | | | | | | | | | | | That way all mix levels as exported by avpriv_ac3_parse_header() will have the same meaning. Previously the 3-bit center mix level for E-AC-3 was used to index in a 4-entry table, leading to out-of-array reads. Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com> Signed-off-by: Alex Converse <alex.converse@gmail.com>
* aacdec: Unify preconfigured layout and PCE layout.Alex Converse2012-02-09
|
* aacdec: Support native channel layout when requested.Alex Converse2012-02-09
|
* aacdec: Try to sniff a reasonable channel layout for PCE based configurations.Alex Converse2012-02-09
| | | | This changes the output order of multichannel PCE based streams.
* libavcodec: Don't do av_free(av_malloc(0)) for bitstream filtersMartin Storsjö2012-02-09
| | | | | | | This fixes crashes on exit when closing a bitstream filter that hasn't allocated any private data, on OS X. Signed-off-by: Martin Storsjö <martin@martin.st>
* eac3dec: replace undefined 1<<31 with INT32_MIN in noise generationJanne Grunau2012-02-09
|
* prores: specify array size outside DECLARE_ALIGNED brackets.Ronald S. Bultje2012-02-09
|
* tta: use skip_bits_long()Paul B Mahol2012-02-09
| | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* build: Add missing directories to DIRS declarations.Diego Biurrun2012-02-09
|
* arm: Add missing #include to vp8.h to fix a make checkheaders warning.Diego Biurrun2012-02-09
|
* cosmetics: Delete empty lines at end of file.Diego Biurrun2012-02-09
|
* bytestream: K&R formatting cosmeticsAneesh Dogra2012-02-09
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* rawenc: switch to encode2().Anton Khirnov2012-02-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changes a number of FATE results, since before this commit, the timestamps in all tests using rawenc were made up by lavf. In most cases, the previous timestamps were completely bogus. In some other cases -- raw formats, mostly h264 -- the new timestamps are bogus as well. The only difference is that timestamps invented by the muxer are replaced by timestamps invented by the demuxer. cscd -- avconv sets output codec timebase from r_frame_rate and r_frame_rate is in this case some guessed number 31.42 (377/12), which is not accurate enough to represent all timestamps. This results in some frames having duplicate pts. Therefore, vsync 0 needs to be changed to vsync 2 and avconv drops two frames. A proper fix in the future would be to set output timebase to something saner in avconv. nuv -- previous timestamps for video were wrong AND the cscd comment applies, one frame is dropped. vp8-signbias -- the file contains two frames with identical timestamps, so -vsync 0 needs to be removed/changed to -vsync 2 and avconv drops one frame. vc1-ism -- apparrently either the demuxer lies about timestamps or the file is broken, since dts == pts on all packets, but reordering clearly takes place.
* pixdesc: mark pseudopaletted formats with a special flag.Anton Khirnov2012-02-08
| | | | | | This makes it possible to dintinguish them from PAL8. Fixes an invalid write in avpicture_layout().
* libx264: implement encode2().Anton Khirnov2012-02-08
|
* libx264: split extradata writing out of encode_nals().Anton Khirnov2012-02-08
| | | | This is done in preparation for the following patch.
* lavc: add avcodec_encode_video2() that encodes from an AVFrame -> AVPacketAnton Khirnov2012-02-08
| | | | Deprecate avcodec_encode_video().
* h264: manually save/restore XMM registers for functions using INIT_MMX.Ronald S. Bultje2012-02-08
| | | | | On Win64, these registers are callee-save, so not saving/restoring them correctly is a violation of ABI and can lead to crashes or corrupt data.
* aacdec: Use correct speaker order for 7.1.Alex Converse2012-02-08
| | | | | | | | | The spec says the following speaker mapping is default: center front speaker left, right center front speakers, left, right outside front speakers, left surround, right surround rear speakers, front low frequency effects speaker
* aacdec: Remove incorrect comment.Alex Converse2012-02-08
| | | | It was only correct when element ids met very specific criteria.
* aacdec: Simplify output configuration.Alex Converse2012-02-08
|
* Remove Sun medialib glue code.Diego Biurrun2012-02-08
| | | | | It is obscure, most likely unused and not bit-exact compared to libavcodec due to a different IDCT transform algorithm.
* dsputil: set STRIDE_ALIGN to 16 for x86 also.Ronald S. Bultje2012-02-07
| | | | | | This fixes crashes in e.g. PNG decoding with SSE2 enabled. In fact, many x86 optimizations for codecs assume that our buffer strides are 16-byte aligned.
* pngdsp: swap argument inversion.Ronald S. Bultje2012-02-07
|
* h264: mark h264_idct_add8_10 with number of XMM registers.Michael Kostylev2012-02-07
| | | | | | This fixes XMM register clobber problems on Win64. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vp8: always update next_framep[] before returning from decode_frame().Ronald S. Bultje2012-02-07
| | | | | | | | | | Also slightly move around code not allocate a new frame if we won't decode it. This prevents us from putting undecoded frames in frame pointers, which (in mt decoding) other threads will use and wait on as references, causing a deadlock (if we skipped decoding) or a crash (if we didn't initialized next_framep[] at all). Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
* apedec: allow the user to set the maximum number of output samples per callJustin Ruggles2012-02-07
| | | | | | | It makes sense in some cases to split up the output packet to save on memory usage (ape frames can be very large), but the current/default size is arbitrary. Allowing the user to configure this gives more flexibility and requires minimal additional code.
* apedec: do not unnecessarily zero output samples for mono framesJustin Ruggles2012-02-07
|
* apedec: allocate a single flat buffer for decoded samplesJustin Ruggles2012-02-07
| | | | | This will allow the decoder to return samples for the full packet, and it also makes the decoded buffer pointers aligned.
* apedec: use sizeof(field) instead of sizeof(type)Justin Ruggles2012-02-07
|
* bytestream: Add bytestream2 writing API.Aneesh Dogra2012-02-06
| | | | Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* Revert "v210enc: use FFALIGN()"Paul B Mahol2012-02-06
| | | | | | | | | FFALIGN doesn't work with non-powers-of-2. This reverts commit 7ad1b612c8a2a1b1b47f6c3c580ced4bca17e1c7. Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* doxygen: Do not include license boilerplates in Doxygen comment blocks.Diego Biurrun2012-02-06
|
* avcodec: Clarify AVFrame member documentation.Kieran Kunhya2012-02-06
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* v210dec: check for coded_frame allocation failurePaul B Mahol2012-02-06
| | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* v210enc: use stride as it is already calculatedPaul B Mahol2012-02-06
| | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* v210enc: use FFALIGN()Paul B Mahol2012-02-06
| | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* v210enc: return proper AVERROR codes instead of -1Paul B Mahol2012-02-06
| | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* v210enc: do not set coded_frame->key_framePaul B Mahol2012-02-06
| | | | | | | It is already set in avcodec_alloc_frame(). Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* v210enc: check for coded_frame allocation failurePaul B Mahol2012-02-06
| | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>