summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* mpegvideo: Move MotionEstContext and function declarations to a separate headerVittorio Giovara2015-05-31
|
* mpegvideo: mpeg12: Move function declarationsVittorio Giovara2015-05-31
|
* mpegvideo: Move tables to a separate fileVittorio Giovara2015-05-31
|
* mpegvideo: msmpeg4: Move function declarationsVittorio Giovara2015-05-31
|
* mpegvideo: wmv2: Move function declarationsVittorio Giovara2015-05-31
|
* dxva2_hevc: re-write reference frame handlingHendrik Leppkes2015-05-31
| | | | | | | The old logic required an explicit clearing of the lists first and was prone to overflow the DXVA2 struct in some circumstances. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* dxva2_hevc: fix 32x32 scaling listsHendrik Leppkes2015-05-31
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mov: always check avio_read return valueAndreas Cadhalpun2015-05-31
| | | | | | | | | | | If avio_read fails, the buffer can contain uninitialized data. This fixes 'Conditional jump or move depends on uninitialised value(s)' valgrind warnings, and addresses a few memleaks. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avio: Add avio_read wrapper to simplify error checkingVittorio Giovara2015-05-31
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mov: reject zero bytes_per_frame with non-zero samples_per_frameAndreas Cadhalpun2015-05-31
| | | | | | | In this case the mov demuxer can return a large number of empty packets. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mov: abort on EOF in ff_mov_read_chanAndreas Cadhalpun2015-05-31
| | | | | | | Otherwise the loop can take a lot of time if num_descr is very large. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mov: Correctly allocate ctts_dataLuca Barbato2015-05-31
| | | | | | It can be reallocated. CC: libav-stable@libav.org
* mov: Fix two memleaksAndreas Cadhalpun2015-05-31
| | | | | | | Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org> CC: libav-stable@libav.org
* vp9: Parse subsampling and report missing featureVittorio Giovara2015-05-31
|
* x86: check for AV_CPU_FLAG_AVXSLOW where usefulJames Almer2015-05-31
| | | | | Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* x86: Add helper macros to check for slow cpuflagsJames Almer2015-05-31
| | | | | Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* x86: add AV_CPU_FLAG_AVXSLOW flagJames Almer2015-05-31
| | | | | Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* ppc: vsx: Implement diff_pixels and get_pixelsLuca Barbato2015-05-31
| | | | Use a macro to abstract the endianness.
* ppc: vsx: Implement float_dspLuca Barbato2015-05-31
|
* ppc: cpu: Add support for VSX and POWER8 extensionsLuca Barbato2015-05-31
|
* ppc: Restrict some Altivec implementations to Big EndianLuca Barbato2015-05-31
| | | | | In Little Endian the vec_ld/vec_st operations work as expected only for byte-vectors.
* ppc: configure: Support ISA 2.06 and laterLuca Barbato2015-05-31
| | | | | | | POWER 7 and POWER 8 support VSX and ldbrx. POWER 8 supports additional extended VSX instructions introduced with ISA 2.07.
* ppc: Clarify and extend the cpuid checkLuca Barbato2015-05-31
| | | | Add POWER entries.
* ppc: linux: Check altivec using the auxvLuca Barbato2015-05-31
| | | | Should prevent trying to use altivec when it is disabled by the kernel.
* ppc: pixblockdsp: Use the abriged vector typesLuca Barbato2015-05-31
|
* ppc: avutil: Use the abriged vector typesLuca Barbato2015-05-31
|
* ppc: avutil: Drop a potentially dangerous workaroundLuca Barbato2015-05-31
| | | | The compiler is free to optimize such expressions in any sort of way.
* network: prevent SIGPIPE on OSXwm42015-05-31
| | | | | | | | OSX does not know MSG_NOSIGNAL. BSD (which OSX is based on) has got the socket option SO_NOSIGPIPE (even if modern BSDs also support MSG_NOSIGNAL). Signed-off-by: Martin Storsjö <martin@martin.st>
* h264: Make sure reinit failures mark the context as not initializedLuca Barbato2015-05-30
| | | | | Bug-Id: CVE-2015-3417 CC: libav-stable@libav.org
* msrle: Use FFABS to determine the frame size in msrle_decode_pal4Luca Barbato2015-05-30
| | | | | | | As done in msrle_decode_8_16_24_32. Bug-Id: CVE-2015-3395 CC: libav-stable@libav.org
* rtmpdh: Generate the whole private exponent using av_get_random_seed() with ↵Martin Storsjö2015-05-29
| | | | | | | | | nettle/gmp Don't use a PRNG for generating it; that defies the intended use within the cryptograhic handshake. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmpdh: Create sufficiently long private keys for gcrypt/nettleMartin Storsjö2015-05-29
| | | | | | | There was a misunderstanding betewen bits and bytes for the parameter value for generating random big numbers. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmpdh: Remove an unnecessary check in the gcrypt/nettle dh_compute_keyMartin Storsjö2015-05-29
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmpdh: Add fate test for the DH handshake routineMartin Storsjö2015-05-29
| | | | | | | This helps if these functions need to be implemented using another crypto API. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmpdh: Pass the actual buffer size of the output secret keyMartin Storsjö2015-05-29
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmpdh: Check the output buffer size in the openssl version of dh_compute_keyMartin Storsjö2015-05-29
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmpdh: Fix a local variable name in the nettle/gcrypt codepathMartin Storsjö2015-05-29
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmpdh: Make sure ret is initialized in the nettle version of bn_hex2bnMartin Storsjö2015-05-29
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* pixfmt: remove misleading and broken documentationwm42015-05-28
| | | | | | | | | | | | | | | | | | | | This was probably broken some time ago. The breakage is now part of the ABI. For example, we have: AV_PIX_FMT_XYZ12BE AV_PIX_FMT_NV16 AV_PIX_FMT_NV20LE AV_PIX_FMT_NV20LE is wrong. It has the value 113, but as little-endian format it should be even. This must have been quite obvious when these formats were added (because of the AV_PIX_FMT_XYZ12BE entry), but nobody cared or knew about this. The future libavutil major bump will also break this additionally, because disabling FF_API_VDPAU will remove an odd number of entries from the middle of the enum. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* x86: cavs: Remove an unneeded scratch bufferMichael Niedermayer2015-05-28
| | | | | | | | Simplifies the code and makes it build on certain compilers running out of registers on x86. CC: libav-stable@libav.org Reported-By: mudler
* rl: Add error checking to ff_rl_init().Anton Khirnov2015-05-28
|
* rl: Add a function for freeing dynamically allocated tables.Anton Khirnov2015-05-28
| | | | Such tables are not used anywhere currently, but that should change.
* rl: Rename ff_*_rl() to ff_rl_*()Anton Khirnov2015-05-28
|
* mpegvideo: Move ff_*_rl functions to a separate fileAnton Khirnov2015-05-28
|
* mpegvideo: Drop exchange_uv() function and use its code directlyVittorio Giovara2015-05-28
| | | | Code is small enough that there is no advantage in a separate function.
* tls_gnutls: Add missing includes for the gcrypt thread safety callbacksMartin Storsjö2015-05-28
| | | | | | | This fixes building with gcrypt-backed gnutls versions, broken in 57cde2b180. Signed-off-by: Martin Storsjö <martin@martin.st>
* x86inc: Clear __SECT__Timothy Gu2015-05-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Silences warning(s) like: libavcodec/x86/fft.asm:93: warning: section flags ignored on section redeclaration The cause of this warning is that because `struc` and `endstruc` attempts to revert to the previous section state [1]. The section state is stored in the macro __SECT__, defined by x86inc.asm to be `.note.GNU-stack ...`, through the `SECTION` directive [2]. Thus, the `.note.GNU-stack` section is defined twice (once in x86inc.asm, once during `endstruc`), causing the warning. That is the first part of the commit: using the primitive `[section]` format for .note.GNU-stack etc., which does not update `__SECT__` [2]. That fixes only half of the problem. Even without any `SECTION` directives, `__SECT__` is predefined as `.text`, which conflicting with the later `SECTION_TEXT` (which expands to `.text align=16`). [1]: http://www.nasm.us/doc/nasmdoc6.html#section-6.4 [2]: http://www.nasm.us/doc/nasmdoc6.html#section-6.3 Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* lavf: move TLS-related ifdeffery to library specific fileswm42015-05-26
| | | | | | There is no need to have this mess in network.c. Signed-off-by: Martin Storsjö <martin@martin.st>
* lavf: split tls.cwm42015-05-26
| | | | | | | | Move the OpenSSL and GnuTLS implementations to their own files. Other than the connection code (including options) and some boilerplate, no code is actually shared. Signed-off-by: Martin Storsjö <martin@martin.st>
* doc: Fix spelling of 'Transmission'Sebastian Ramacher2015-05-26
| | | | | Signed-off-by: Sebastian Ramacher <sramacher@debian.org> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>