summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* 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>
* flashsv: check for keyframe before using differential codingJanne Grunau2012-11-26
| | | | | | Fixes a segfault in te fuzzed sample resolutionchange.flv_s211713. CC: libav-stable@libav.org
* h264: enable low delay only if no delayed frames were seenJanne Grunau2012-11-26
| | | | | | | | | | | Dropping frames is undesirable but that is the only way by which the decoder could return to low delay mode. Instead emit a warning and continue with delayed frames. Fixes a crash in fuzzed sample nasa-8s2.ts_s20033 caused by a larger than expected has_b_frames value. Low delay keeps getting re-enabled from a presumely broken SPS. CC: libav-stable@libav.org
* x86: fix build without inline asmDiego Biurrun2012-11-26
| | | | | | | | The qpel functions referenced here are not related to h264 and should thus never have been under CONFIG_H264QPEL. Signed-off-by: Mans Rullgard <mans@mansr.com> Signed-off-by: Diego Biurrun <diego@biurrun.de>
* aacdec: use float planar sample format for outputJustin Ruggles2012-11-25
|
* lavc: clarify get_buffer() documentationJustin Ruggles2012-11-25
| | | | | This is needed for the AAC decoder, which may need to call get_buffer() more than once if the channel configuration changes.
* mpegaudiodec: use planar sample format for output unless packed is requestedJustin Ruggles2012-11-25
|
* x86: h264 qpel: use the correct number of utilized xmm regs in cglobalJustin Ruggles2012-11-25
| | | | Fixes xmm register clobbering on win64.
* x86: h264: Convert 8-bit QPEL inline assembly to YASMDaniel Kang2012-11-25
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* x86: h264: Remove 3dnow QPEL codeDaniel Kang2012-11-25
| | | | | | | The only CPUs that have 3dnow and don't have mmxext are 12 years old. Moreover, AMD has dropped 3dnow extensions from newer CPUs. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* x86: h264_chromamc: port to cpuflagsDiego Biurrun2012-11-25
|
* mpegvideo: simplify dxy calculation in hpel_motion()Mans Rullgard2012-11-23
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* cdgraphics: fix incorrect vertical offset mask in cdg_scroll()Xi Wang2012-11-21
| | | | | | | | | | | | The vertical offset mask 0x07 is suspicious. v_off = FFMIN(data[2] & 0x07, CDG_BORDER_HEIGHT - 1); Note that v_off is up to 11 (CDG_BORDER_HEIGHT - 1), the correct mask should be 0x0F. Signed-off-by: Xi Wang <xi.wang@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* flashsv: Drop unused function and struct parametersDiego Biurrun2012-11-21
|
* pcm: fix decoding of pcm_s16le_planar on big-endianJustin Ruggles2012-11-20
| | | | | | The sample count is decremented by the DECODE() macro and needs to be reset in each loop iteration. Also, DECODE() increments the src pointer so that does not need to be done separately.
* imgconvert: remove PixFmtInfoLuca Barbato2012-11-20
| | | | It is pleonastic and was used in stale functions pending replacement.
* avcodec: split avpicture from imgconvertLuca Barbato2012-11-20
| | | | All the non deprecated functions are in avpicture.c now.
* alacenc: support 24-bit encodingJustin Ruggles2012-11-20
|
* pcmdec: use planar sample format for pcm_s16le_planarJustin Ruggles2012-11-19
|
* vorbisdec: use float planar sample formatJustin Ruggles2012-11-19
|
* x86: h264_intrapred: Fix C function names in commentsDiego Biurrun2012-11-18
| | | | | Function names changed after switching to declaration with PRED4x4/8x8/8x8L/16x16 macros in the C code.
* x86: SPLATD: port to cpuflagsDiego Biurrun2012-11-18
|
* PGS subtitles: Set AVSubtitle pts valueJohn Stebbins2012-11-18
| | | | | | pts should be that of the packet containing the presentation segment. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* h264: Fix parameters to ff_er_add_slice() callJanne Grunau2012-11-16
| | | | | | | | | s->mb_x is reset to zero a couple of lines above. It does not make sense to call ff_er_add_slice() with 0 as endx when the end of the macroblock row was reached. Fixes unnecessary and counterproductive error resilience in https://bugzilla.libav.org/show_bug.cgi?id=394. CC: libav-stable@libav.org
* h264: always check ref_count for validityJanne Grunau2012-11-16
| | | | Fixes a crash with zuffed files.
* x86: dsputil: port to cpuflagsDiego Biurrun2012-11-16
|
* bgmc: Fix av_malloc checks in ff_bgmc_init()Xi Wang2012-11-14
| | | | | Signed-off-by: Xi Wang <xi.wang@gmail.com> Signed-off-by: Diego Biurrun <diego@biurrun.de>
* x86: mmx2 ---> mmxext in asm constructsDiego Biurrun2012-11-14
|
* Drop broken and unused CABAC test program.Diego Biurrun2012-11-14
|
* x86: h264_weight_10bit: port to cpuflagsDiego Biurrun2012-11-13
|
* libtheoraenc: add missing pixdesc.h headerLuca Barbato2012-11-13
| | | | Was left out from c1a02e884ac785033baab356a5437adf057a4189.
* avcodec: remove ff_is_hwaccel_pix_fmtLuca Barbato2012-11-13
| | | | | It is used only in one place and is unlikely it would be needed elsewhere.
* pixdesc: add av_pix_fmt_get_chroma_sub_sampleLuca Barbato2012-11-13
| | | | Deprecate avcodec_get_chroma_sub_sample.