summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* ac3dec: output planar float onlyMans Rullgard2012-12-09
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* svq3: make slice type value unsigned to match svq3_get_ue_golomb return typeJanne Grunau2012-12-09
|
* cosmetics: Fix dropable --> droppable typoDiego Biurrun2012-12-09
|
* mjpeg: initialize input padding after unescaped buffer to zeroJanne Grunau2012-12-08
| | | | | | Fixes valgrind --undef-value-errors=yes warnings caused by valid overreads in the fate vsynth jpegls, cover-art-ape and cover-art-wv tests.
* h264: check for invalid zeros_left before writingRonald S. Bultje2012-12-08
| | | | | | | Prevent an invalid write into coeffs[scantable[-1]] if zeros_left itself was an invalid VLC code (and thus -1). Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* golomb: use unsigned arithmetics in svq3_get_ue_golomb()Janne Grunau2012-12-08
| | | | | | | | | | This prevents undefined behaviour of signed left shift if the coded value is larger than 2^31. Large values are most likely invalid and caused errors or by feeding random. Validate every use of svq3_get_ue_golomb() and changed the place there the return value was compared with negative numbers. dirac.c was clean, fixed rv30 and svq3.
* takdec: fix initialisation of LOCAL_ALIGNED arrayJosh Allmann2012-12-08
| | | | | | | When LOCAL_ALIGNED uses manual alignment initialisation is not possible. Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* takdec: fix initialisation of LOCAL_ALIGNED arrayMans Rullgard2012-12-07
| | | | | | | When LOCAL_ALIGNED uses manual alignment initialisation is not possible. Signed-off-by: Mans Rullgard <mans@mansr.com>
* tak: demuxer, parser, and decoderPaul B Mahol2012-12-07
| | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* parser: fix large overreadsMichael Niedermayer2012-12-07
| | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* bitstream: add get_bits64() to support reading more than 32 bits at onceMichael Niedermayer2012-12-07
| | | | | | | Also remove a duplicate function in the MPEG-TS demuxer. Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* arm: rename ARMVFP config symbol to VFPMans Rullgard2012-12-07
| | | | | | | This is consistent with usual ARM nomenclature as well as with the VFPV3 and NEON symbols which both lack the ARM prefix. Signed-off-by: Mans Rullgard <mans@mansr.com>
* arm: use HAVE*_INLINE/EXTERNAL macros for conditional compilationMans Rullgard2012-12-07
| | | | | | These macros reflect the actual capabilities required here. Signed-off-by: Mans Rullgard <mans@mansr.com>
* dct-test: arm: indicate required cpu features for optimised funcsMans Rullgard2012-12-07
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* snow: fix build after 594d4d5df3c70404168701dd5c90b7e6e5587793Anton Khirnov2012-12-07
|
* arm: fix use of uninitialised value in ff_fft_fixed_init_arm()Mans Rullgard2012-12-07
| | | | | | | | | When initialising an FFTContext for a plain FFT, mdct_bits is not set and can contain a garbage value. Since nbits is always valid and for MDCT operation is mdct_bits - 2 checking this instead avoids using an uninitialised value while having the same effect. Signed-off-by: Mans Rullgard <mans@mansr.com>
* avpicture: Don't assume a valid pix fmt in avpicture_get_sizeMartin Storsjö2012-12-07
| | | | | | | | | When called from the v4l2 input device, pix_fmt can be AV_PIX_FMT_NONE (for jpeg formats). Before 50ba57e0, this wasn't an issue for avpicture_get_size, but after that commit, this lead to crashes. Signed-off-by: Martin Storsjö <martin@martin.st>
* h264: add a pointer for weighted prediction temporary bufferJanne Grunau2012-12-07
| | | | | Reusing MpegEncContext's obmc_scratchpad for this becomes a mess with adaptive frame-mt.
* h264: check sps.log2_max_frame_num for validityJanne Grunau2012-12-07
| | | | | | | Fixes infinite or long taking loop in frame num gap code in the fuzzed sample bipbop234.ts_s223302. CC: libav-stable@libav.org
* flac: change minimum and default of lpc_passes option to 1Janne Grunau2012-12-07
| | | | | | Avoid use of uninitialized and uncomputed linear least square models during ff_lpc_calc_coefs() for FF_LPC_TYPE_CHOLESKY. Fixes running make fate-flac-16-lpc-cholesk with valgrind --undef-value-errors=yes.
* SBR DSP x86: implement SSE sbr_hf_genChristophe Gisquet2012-12-07
| | | | | | | | | | | | Start and end index are multiple of 2, therefore guaranteeing aligned access. Also, this allows to generate 4 floats per loop, keeping the alignment all along. Timing: - 32 bits: 326c -> 172c - 64 bits: 323c -> 156c Signed-off-by: Diego Biurrun <diego@biurrun.de>
* AAC SBR: use AVFloatDSPContext's vector_fmulChristophe Gisquet2012-12-07
| | | | | | Around 5% speedup on the code block using 'vector_fmul_add's. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* h264: slice-mt: check master context for valid current_picture_ptrJanne Grunau2012-12-05
| | | | | | Fixes errors in slice based multithreading introduced in 0b300daad2f5. CC: libav-stable@libav.org
* h264: slice-mt: get last_pic_dropable from master contextJanne Grunau2012-12-05
| | | | | | | Fixes fate-h264-conformance-cvnlfi2_sony_h and smllwebdl.mkv from https://github.com/OpenELEC/OpenELEC.tv/issues/1557 . CC: libav-stable@libav.org
* alacenc: add support for multi-channel encodingJustin Ruggles2012-12-05
|
* mimic: initialize padding of swap_buf through av_fast_padded_mallocJanne Grunau2012-12-05
|
* eamad: initialize padding of bitstream_buf through av_fast_padded_malloc()Janne Grunau2012-12-05
|
* lavc: fix decode_frame() third parameter semantics for video decodersAnton Khirnov2012-12-04
| | | | It's got_frame, not data size
* lavc: factorise setting buffer type in avcodec_default_get_buffer().Anton Khirnov2012-12-04
|
* lavc: don't reuse audio buffersAnton Khirnov2012-12-04
| | | | | Any performance gain from this is negligible and not worth the extra code.
* lavc: set frame properties in ff_get_buffer().Anton Khirnov2012-12-04
| | | | | There is no point in duplicating this code in every get_buffer() implementation.
* lavc: add a wrapper for AVCodecContext.get_buffer().Anton Khirnov2012-12-04
| | | | It will be useful in the upcoming transition to refcounted AVFrames.
* Remove pointless #undefs of previously forbidden functions.Anton Khirnov2012-12-04
|
* h264: error out on unset current_picture_ptr for h->current_slice > 0Janne Grunau2012-12-02
| | | | | | Fixes a segfault with fuzzed sample sample_varPAR_s11622_r001-02.avi. CC: libav-stable@libav.org
* aac: avoid a memcpy in sbr_qmf_analysisChristophe Gisquet2012-12-02
| | | | | | | Swapping buffer indices allows saving one memcpy that accounts for 1% of the runtime, according to oprofile. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* build: The FLAC encoder also depends on the flacdsp codeDiego Biurrun2012-11-29
| | | | Fixes linking with only the FLAC encoder enabled.
* h264: check context state before decoding slice data partitionsJanne Grunau2012-11-29
| | | | | | | Fixes mov_h264_aac__Demo_FlagOfOurFathers.mov.SIGSEGV.4e9.656. Found-by: Mateusz "j00ru" Jurczyk CC: libav-stable@libav.org
* flashsv: make sure data for zlib priming is availableJanne Grunau2012-11-29
| | | | | | Fixes a segfault in the fuzzed sample resolutionchange.flv_s314809. CC: libav-stable@libav.org
* x86: dsputilenc: port to cpuflagsDiego Biurrun2012-11-28
|
* x86: h264dsp: Fix linking with yasm and optimizations disabledDiego Biurrun2012-11-28
| | | | | Some optimized functions reference optimized symbols, so the functions must be explicitly disabled when those symbols are unavailable.
* x86: h264_idct: port to cpuflagsDiego Biurrun2012-11-28
|
* vble: Do not abort decoding when version is not 1Piotr Bandurski2012-11-27
| | | | | | | | Some combinations of OS, VirtualDub, and VBLE can accidentally set the version to a value other than 1. Since no other version of VBLE was ever released, simply warn about it. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* x86: h264_weight: port to cpuflagsDiego Biurrun2012-11-27
|
* h264: set Picture.owner2 to the current threadJanne Grunau2012-11-27
| | | | | | | | This does not seem to have an effect currently. Fate-h264 passes with THREADS=1..16 and both threading types as before. It fixes however a segfault during error resilience with my adaptive-frame-mt patchset. A picture in use during error resilience gets realloced in another thread in the fuzzed sample sample_varPAR.avi_s226019.
* h264: check ref_count validity for num_ref_idx_active_override_flagJanne Grunau2012-11-27
| | | | | | Fixes segfault in the fuzzed sample bipbop234.ts_s226407. CC: libav-stable@libav.org
* h264: add missing new line to log messageJanne Grunau2012-11-27
|
* dcadec: skip QMF on unused channelsMichael Niedermayer2012-11-26
| | | | | | | | | | When the extra rear channel is present but unused, the s->channel_order_tab[] value for that channel is -1. The QMF can be skipped for the extra channel, and doing so avoids an out-of-array read on s->samples_chanptr[]. Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* dsputil: move vector_fmul_scalar() to AVFloatDSPContext in libavutilJustin Ruggles2012-11-26
|
* aacenc: use the correct output bufferMichael Niedermayer2012-11-26
| | | | | | | This fixes segfault caused by 3d3cf6745e2a5dc9c377244454c3186d75b177fa when SingleChannelElement.ret was renamed to SingleChannelElement.ret_buf. Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* aacdec: fix signed overflows in lcg_random()Mans Rullgard2012-11-26
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>