summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* swfdec: cosmetics: fix indentationJustin Ruggles2012-12-11
|
* swfdec: do better validation of tag lengthJustin Ruggles2012-12-11
| | | | | | | Avoids trying to read a packet with 0 or negative size. Avoids a potential infinite loop due to seeking backwards. Partially based on a patch by Michael Niedermayer.
* Make LOCAL_ALIGNED syntactically similar on all systemsMans Rullgard2012-12-11
| | | | | | | | | This changes the LOCAL_ALIGNED definition on systems where DECLARE_ALIGNED is used so it matches the manual alignment case, ensuring invalid use will not compile on x86 only to fail on everything else. Signed-off-by: Mans Rullgard <mans@mansr.com>
* build: fix 'clean' targetMans Rullgard2012-12-10
| | | | | | | | This fixes removal of TOOLS as well as HOSTPROGS declared in the top-level Makefile. The clean target in common.mak needs to be eval'd since the variables used within are reset for each library. Signed-off-by: Mans Rullgard <mans@mansr.com>
* ZeroCodec: Flip outputCarl Eugen Hoyos2012-12-10
| | | | | | | | | | The initial testing of the VFW binary codec was flawed, likely due to an AviSynth bug. Re-testing using VirtualDub and various professional editing applications has revealed it should have been flipped. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* rtpdec: Remove an outdated todo commentMartin Storsjö2012-12-10
| | | | | | | | | | | | This comment was added in e309128f, in 2002, and has been brought along since then more or less unmodified. The first point of the todo was implemented in dbf30963 in 2006, the second one is not relevant to rtpdec.c (brought along from rtp.c in 8eb793c4 in 2008) but would be more relevant to the rtp muxer, although it isn't a good idea anyway. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec: Rename a static variable to normal naming conventionsMartin Storsjö2012-12-10
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* sh4: dsputil: remove duplicate of ff_gmc_c()Mans Rullgard2012-12-10
| | | | | | This function is an exact duplicate of the generic one. Signed-off-by: Mans Rullgard <mans@mansr.com>
* dsputil: remove unused macro WRAPPER8_16Mans Rullgard2012-12-09
| | | | | | This macro has never been used. Signed-off-by: Mans Rullgard <mans@mansr.com>
* configure: fix automatic processing of _extralibs in check_depsMans Rullgard2012-12-09
| | | | | | | This fixes the automatic use of $foo_extralibs when feature foo is enabled indirectly through a _select or _suggest. Signed-off-by: Mans Rullgard <mans@mansr.com>
* libvpxenc: Support forcing keyframesMartin Storsjö2012-12-09
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* ac3dec: decode directly into output buffersMans Rullgard2012-12-09
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* ac3dec: make downmix() take array of pointers to channel dataMans Rullgard2012-12-09
|
* 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
|
* configure: Have protocols select network code instead of depending on itDiego Biurrun2012-12-09
|
* rtpdec: K&R formatting and spelling cosmeticsMartin Storsjö2012-12-09
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* cosmetics: Fix dropable --> droppable typoDiego Biurrun2012-12-09
|
* avio: K&R cosmetic formattingLuca Barbato2012-12-09
|
* lavf: fix arithmetic overflows in avformat_seek_file()Mans Rullgard2012-12-08
| | | | | | | | The values compared here can be more than INT64_MAX apart. Since the difference is always positive, converting to uint64_t before subtracting gives the correct result without overflows. Signed-off-by: Mans Rullgard <mans@mansr.com>
* 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.
* img2: document the options availableLuca Barbato2012-12-08
|
* hls: improve options descriptionLuca Barbato2012-12-08
|
* hls: use a meaningful long nameLuca Barbato2012-12-08
|
* hls: add start_number optionLuca Barbato2012-12-08
|
* 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.
* x86: float_dsp: fix loading of the len parameter on x86-32Justin Ruggles2012-12-07
|
* 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: detect cpu features at runtime on LinuxMans Rullgard2012-12-07
| | | | | | | | This allows compiling optimised functions for features not enabled in the core build and selecting these at runtime if the system has the necessary support. Signed-off-by: Mans Rullgard <mans@mansr.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>
* configure: arm: make _inline arch ext symbols depend on inline_asmMans Rullgard2012-12-07
| | | | | | This makes --disable-inline-asm work as expected. 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>
* configure: arm: check inline and external asm support for extensionsMans Rullgard2012-12-07
| | | | | | | This tests instruction set support in both inline and external asm. If both fail, the base config option is disabled. Signed-off-by: Mans Rullgard <mans@mansr.com>
* configure: add check_insn functionMans Rullgard2012-12-07
| | | | | | | | The check_insn function tests an instruction in both inline asm and standalone assembly, and sets _external/_inline config properties accordingly. Signed-off-by: Mans Rullgard <mans@mansr.com>
* configure: clean up check_inline_asm and check_as functionsMans Rullgard2012-12-07
| | | | | | | | | | | | | | | The check_inline_asm function should check the actual C compiler, not the one used for assembly files. Usually these are the same, but they might be different, typically when using a compiler other than gcc. The check_as should, as its name suggests, test the type of input the AS command is used with, i.e. a standalond assembly (.S) file. Finally, check for gnu assembler using the modified check_as as this reflects actual usage. Signed-off-by: Mans Rullgard <mans@mansr.com>
* configure: arm: set fast_clz and fast_unaligned in cpuflags sectionMans Rullgard2012-12-07
| | | | | | | | These are properties of the targeted core and do not depend on specific assembly support in the toolchain which if missing will render the controlling options here disabled. Signed-off-by: Mans Rullgard <mans@mansr.com>
* configure: arm: detect toolchain default arch versionMans Rullgard2012-12-07
| | | | | | | | | | | | | Probe for the toolchain default architecture version if no --cpu flag is present or an unknown cpu is specified. Works with gcc, clang and armcc. This allows configuring based on the arch version even if it is not explicitly specified to configure. It also causes an explicit -march flag to be added to CFLAGS and ASFLAGS, which in turn lets us do proper instruction set tests with the assembler. Signed-off-by: Mans Rullgard <mans@mansr.com>
* configure: do not bypass cpuflags section if --cpu not givenMans Rullgard2012-12-07
| | | | | | | This will allow arch-specific ways of determining the target variant when none is specified on the command line. 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
* mov: validate number of DataReferenceBox entries against box sizeJanne Grunau2012-12-07
| | | | | Avoids a 2G memory allocation and parsing of random data in mov_read_dref(). The fuzzed sample sample.mp4_s224424 triggers this.