summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
...
* mpegaudiodec: fix short_start calculationLuca Barbato2012-09-28
| | | | | | | The value should be always 3, as it follows from the specification. Fix a stack buffer overflow in exponents_from_scale_factors as reported by asan. Thanks to Dale Curtis for the sample vector.
* libopus: Remap channels using libopus' internal remapping.Nathan Caldwell2012-09-28
| | | | | | | | This way we can directly remap channels from Opus' channel order to libav's internal channel order, instead of mapping channels from Opus' order to Vorbis' order then to libav's order. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* Opus decoder using libopusNicolas George2012-09-28
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* avcodec: document the use of AVCodecContext.delay for audio decodingNathan Caldwell2012-09-28
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* vc1dec: add flush function for WMV9 and VC-1 decodersKostya Shishkov2012-09-28
| | | | CC: libav-stable@libav.org
* h264_refs: Fix debug tprintf argument typesDiego Biurrun2012-09-27
|
* golomb: const correctness for get_ue()/get_se() function argumentsDiego Biurrun2012-09-27
|
* get_bits: const correctness for get_bits_trace()/get_xbits_trace() argumentsDiego Biurrun2012-09-27
|
* dwt: Drop unused functions spatial_compose{53|97}i()Diego Biurrun2012-09-27
|
* avcodec: Drop long-deprecated imgconvert.h headerDiego Biurrun2012-09-27
|
* Add Opus codec id and codec description.Andrew D'Addesio2012-09-27
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* truemotion2: Request samples for old TM2 headersDiego Biurrun2012-09-26
|
* xsub: feed init_get_bits the whole bufferAlexandre Colucci2012-09-25
| | | | | | | | | | | Do not use rlelen field for buffer size in init_get_bits, it is only the size of the data for the first field. Since it is not reliable, just use the size of the whole buffer. Additional comments add removal of unused rlelen variable by Reimar Döffinger. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* libfdk-aac: Allow setting VBR modes via a private optionMartin Storsjö2012-09-25
| | | | | | | | This avoids using the global_quality field and QSCALE flag for passing the VBR modes, since the value range of the global_quality field doesn't really map cleanly to this codec's VBR modes. Signed-off-by: Martin Storsjö <martin@martin.st>
* libfdk-aac: Warn the user that the VBR modes are unsupportedMartin Storsjö2012-09-25
| | | | | | | | | These modes were not originally exposed by the library at all. In practice, only a few of them work for each sample rate/profile combination, and they don't work at all for the more uncommon sample rates. Signed-off-by: Martin Storsjö <martin@martin.st>
* Revert "cbrt_tablegen: Include libm.h"Derek Buitenhuis2012-09-25
| | | | | | | This code runs on the host and should not use libm.h, which is meant for the target. This reverts commit 2768b717987d4e19d2774890d7d84aef531b1d9f.
* pthread: make sure AVFrame.extended_data is set properly.Anton Khirnov2012-09-25
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* libfdk-aac: reindent after last commitNathan Caldwell2012-09-25
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* libfdk-aac: Limit to supported sample rates.Nathan Caldwell2012-09-25
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* cbrt_tablegen: Include libm.hDerek Buitenhuis2012-09-24
| | | | | | Needed for cbrtf fallback on systems which lack it. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* libx264: change default to closed gop to match x264cliJohn Van Sickle2012-09-24
| | | | | | open-gop can be enabled with "-flags -cgop" Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Use avcodec_free_frame() to free AVFrames.Anton Khirnov2012-09-24
|
* lavc: add avcodec_free_frame().Anton Khirnov2012-09-24
| | | | | Since an AVFrame now has malloced members (extended_data), it must have a destructor.
* lavc: ensure extended_data is set properly on decodingAnton Khirnov2012-09-24
|
* lavc: initialize AVFrame.extended_data in avcodec_get_frame_defaults()Anton Khirnov2012-09-24
|
* lavc: use av_mallocz to allocate AVFrames.Anton Khirnov2012-09-24
| | | | | Otherwise the frame is uninitialized, so avcodec_get_frame_defaults() cannot determine whether to free extended_data.
* lavc: rename the argument of avcodec_alloc_frame/get_frame_defaultsAnton Khirnov2012-09-24
| | | | | AVFrame is used for both audio and video, so calling the argument 'pic' is misleading.
* avcodec: fix memleak in avcodec_encode_audio2()Justin Ruggles2012-09-22
| | | | Ensure that padded_frame is freed before returning when needed.
* sipr: fall back to setting mode based on bit_rate.Reimar Döffinger2012-09-21
| | | | | | | | | | | | | | Not all applications (e.g. MPlayer) set block_align, and when using a different demuxer it might not even be easily available. So fall back to selecting mode based on bit rate as before if block_align has not useful value. It can't be worse than failing to decode completely. (cherry picked from commit 1d0d63052b82c76e10c45cd38cdd27677de72e81) CC: libav-stable@libav.org Signed-off-by: Reinhard Tartler <siretart@tauware.de>
* libx264: add forgotten ;Anton Khirnov2012-09-21
|
* ARM: swap source operands in some add instructionsMans Rullgard2012-09-20
| | | | | | This allows using a 16-bit opcode when generating Thumb2 code. Signed-off-by: Mans Rullgard <mans@mansr.com>
* motion_est: fix use of inline on extern functionsMans Rullgard2012-09-20
| | | | | | | | | | | | | | | | | | Inline functions declared without extern do not provide an external definition in standard C99. This code only works because most compilers do not implement the inline semantics correctly. With a stricter compiler, linking fails with unresolved references to these functions. Declaring the functions extern inline works correctly with some compilers while some others still fail to create external definitions. For maximum portability, create a static inline version with an externally visible wrapper for ff_get_mb_score. ff_epzs_motion_search is so large that no sane compiler inlines it anyway, so there the inline keyword can simply be dropped with no effect. Signed-off-by: Mans Rullgard <mans@mansr.com>
* libx264: add support for nal-hrd, required for Blu-ray streams.John Van Sickle2012-09-19
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* tiffdec: Add support for GRAY16LE.Alex Converse2012-09-19
| | | | Tested with the GraphicsMagick TIFF archive and Libav generated files.
* tiffenc: Add support for little endian RGB48 and GRAY16Alex Converse2012-09-19
|
* mpeg4: support frame parameter changes with frame-mtJanne Grunau2012-09-19
| | | | | | | Adds a flag context_reinit to MpegEncContext to relieable keep track of frame parameter changes which require a context reinitialization. This is required for broken inputs which change the frame size but error out before the context can be reinitialized.
* mpegvideo: check ff_find_unused_picture() return value for errorsJanne Grunau2012-09-19
|
* mpegvideo: release frame buffers before freeing themJanne Grunau2012-09-19
| | | | | Fixes triggering an assert in avcodec_default_release_buffer() introduced in 1b3439b30.
* rv34: use ff_MPV_common_frame_size_change()Janne Grunau2012-09-19
| | | | | Specialised functionality for size changes with the advantage of supporting frame size changes during frame-based multithreading.
* mpegvideo: add reinit function for frame parameter changesJanne Grunau2012-09-19
| | | | | | This is mainly required for frame parameter changes during frame based multithreading but single threaded usage profits too from avoiding ff_MPV_common_end()/ff_MPV_common_init() cycles.
* mpegvideo: move frame size dependent memory management to separate functionsJanne Grunau2012-09-19
| | | | | This is a preparation for supporting frame size changes during frame-based multithreading.
* avcodec: cleanup utils.cLuca Barbato2012-09-18
|
* binkaudio: remove unneeded GET_BITS_SAFE macroJustin Ruggles2012-09-18
| | | | Normal get_bits() already has overread protection.
* binkaudio: use float sample formatJustin Ruggles2012-09-18
| | | | Use planar for DCT codec, interleaved for RDFT codec.
* binkaudio: use a different value for the coefficient scale for the DCT codecJustin Ruggles2012-09-18
| | | | Eliminates the need for vector_fmul_scalar() in each frame.
* alsdec: fix misplaced parentheses.Clément Bœsch2012-09-17
| | | | Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* alsdec: check return values.Thilo Borgmann2012-09-17
| | | | Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* alsdec: fix number of decoded samples in first sub-block in BGMC mode.Thilo Borgmann2012-09-17
| | | | | | | | Fixes CVE-2012-2790 Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* alsdec: Fix out of ltp_gain_values read.Thilo Borgmann2012-09-17
| | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* alsdec: Check that quantized parcor coeffs are within range.Michael Niedermayer2012-09-17
| | | | | | | | | | | ALS spec: 11.6.3.1.1 Quantization and encoding of parcor coefficients ... In all cases the resulting quantized values ak are restricted to the range [-64,63]. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>