summaryrefslogtreecommitdiff
path: root/libavutil
Commit message (Collapse)AuthorAge
* lzo: fix overflow checking in copy_backptr()Xi Wang2013-03-15
| | | | | | | | | | | | | The check `src > dst' in the form `&c->out[-back] > c->out' invokes pointer overflow, which is undefined behavior in C. Remove the check. Also replace `&c->out[-back] < c->out_start' with a safe form `c->out - c->out_start < back' to avoid overflow. CC: libav-stable@libav.org Signed-off-by: Xi Wang <xi.wang@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* Add av_log_{ask_for_sample|missing_feature} replacements to libavutilDiego Biurrun2013-03-13
| | | | | This allows reporting missing features and requesting samples from all libraries in a standard way; with a simplified API.
* atomic: prefer gcc builtins over win32 atomics, if available.Hendrik Leppkes2013-03-11
| | | | | | | The mingw win32 atomics appear to be faulty, so they should not be used if the gcc ones are available. Signed-off-by: Martin Storsjö <martin@martin.st>
* avframe: copy reordered_opaque in copy_propsJanne Grunau2013-03-11
| | | | Fixes video playback in applications still using reordered_opaque.
* atomic: fix CAS with armcc.Anton Khirnov2013-03-09
| | | | | | On the current code, armcc will fail with: "libavutil/atomic_gcc.h", line 52: Error: #2771: first argument must be a pointer to integer or enumeration type
* atomic: Exclude the unsupported implementation headers from checkheadersMartin Storsjö2013-03-08
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* atomic: Check for __sync_val_compare_and_swap instead of __sync_synchronizeMartin Storsjö2013-03-08
| | | | | | | | | | | | Not all gcc configurations have an implementation of all the atomic operations, and some gcc configurations have some atomic builtins implemented but not all. Thus check for the most essential function, whose presence should indicate that all others are present as well, since it can be used to implement all the other ones. Signed-off-by: Martin Storsjö <martin@martin.st>
* atomic: Add include guards to the implementation headersMartin Storsjö2013-03-08
| | | | | | | | This makes them pass standalone compilation tests. Previously, they included atomic.h which included themselves again, leading to double definitions. Signed-off-by: Martin Storsjö <martin@martin.st>
* Replace remaining includes of audioconvert.h with channel_layout.hAnton Khirnov2013-03-08
|
* AVFrame: deprecate all now unused fieldsAnton Khirnov2013-03-08
|
* AVFrame: add side data.Anton Khirnov2013-03-08
|
* Move AVFrame from lavc to lavu.Anton Khirnov2013-03-08
| | | | Add AVBuffer-based reference counting API to it.
* lavc: move AVFrame.hwaccel_picture_private to Picture.Anton Khirnov2013-03-08
| | | | | This field is private and should not be present in a public struct. It is only used in DXVA with mpegvideo-based decoders currently.
* AVBuffer: add a new API for buffer poolsAnton Khirnov2013-03-08
|
* lavu: add a new API for reference-counted data buffers.Anton Khirnov2013-03-08
|
* lavu: add support for atomic operations.Ronald S. Bultje2013-03-08
| | | | | | | | | | These could be used for reference counting, or for keeping track of decoding progress in references in multithreaded decoders. Support is provided by gcc/msvc/suncc intrinsics, with a fallback using pthread mutexes. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* avstring: Fix isxdigit to not accept non-hex charactersMartin Storsjö2013-03-07
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* Use the avstring.h locale-independent character type functionsReimar Döffinger2013-03-07
| | | | | | Make sure the behavior does not change with the locale. Signed-off-by: Martin Storsjö <martin@martin.st>
* avstring: Add locale independent versions of some ctype.h functionsReimar Döffinger2013-03-07
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* lls: Do not return from void functionsDiego Biurrun2013-03-01
|
* lls: #ifndef --> #if in FF_API_ version guardDiego Biurrun2013-03-01
|
* lls: mark max_order as unsigned shortLuca Barbato2013-02-28
| | | | | | The value is within 0 and 32. Remove an `array subscript is below array bounds` warning.
* lls: move to the private namespaceLuca Barbato2013-02-28
| | | | The functions are private.
* lls: K&R formatting cosmeticsLuca Barbato2013-02-28
|
* av_memcpy_backptr: avoid an infinite loop for back = 0Anton Khirnov2013-02-23
| | | | CC:libav-stable@libav.org
* intreadwrite: tomi: Add missing attributes.h #include for av_always_inlineDiego Biurrun2013-02-20
|
* x86: Use simple nop codes for <= sse (rather than <= mmx)Ronald S. Bultje2013-02-19
| | | | | | | | The "CentaurHauls family 6 model 9 stepping 8" family of CPUs (flags: fpu vme de pse tsc msr cx8 sep mtrr pge mov pat mmx fxsr sse up rng rng_en ace ace_en) SIGILLs on long nop codes. Signed-off-by: Martin Storsjö <martin@martin.st>
* avutil: Ensure that emms_c is always defined, even on non-x86Diego Biurrun2013-02-14
|
* avutil: Move emms code to x86-specific headerDiego Biurrun2013-02-14
|
* lavu: avoid clashing definition of ELuca Barbato2013-02-12
| | | | | E is usually defined as a shorthand for AV_OPT_FLAG_ENCODING_PARAM. Rename the single expansion E(x) now used in libavutil to E1.
* crc: Move static data table from header to .c fileDiego Biurrun2013-02-11
| | | | Having static data tables in header files is a potential source of trouble.
* arm: Fall back to runtime cpu feature detection via /proc/cpuinfoMartin Storsjö2013-02-11
| | | | | | | | | | | | | | | | On recent android versions, /proc/self/auxw is unreadable (unless the process is running running under the shell uid or in debuggable mode, which makes it hard to notice). See http://b.android.com/43055 and https://android-review.googlesource.com/51271 for more information about the issue. This makes sure e.g. neon optimizations are enabled at runtime in android apps even when built in release mode, if configured to use the runtime detection. CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* dsputil: Move LOCAL_ALIGNED macros to libavutilDiego Biurrun2013-02-08
|
* dict: add av_dict_parse_string()Justin Ruggles2013-01-25
| | | | | | Can be used to set multiple key/value pairs from a string. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* lavu: Add av_strnstr()Vladimir Pantelic2013-01-25
| | | | | | | This is a length limited version of strstr() Signed-off-by: Vladimir Pantelic <vladoman@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avstring: K&R formatting cosmeticsLuca Barbato2013-01-24
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* float_dsp: Include config.h for redefining restrictMartin Storsjö2013-01-23
| | | | | | | | This makes sure that the restrict keyword is mapped to whatever keyword the compiler prefers/supports. This fixes building on MSVC (and possibly on GCC 2.x as well). Signed-off-by: Martin Storsjö <martin@martin.st>
* floatdsp: move scalarproduct_float from dsputil to avfloatdsp.Ronald S. Bultje2013-01-22
| | | | This makes the aac decoder and all voice codecs independent of dsputil.
* floatdsp: move butterflies_float from dsputil to avfloatdsp.Ronald S. Bultje2013-01-22
| | | | | This makes wmadec/enc, twinvq and mpegaudiodec (i.e. mp2/mp3) independent of dsputil.
* floatdsp: move vector_fmul_reverse from dsputil to avfloatdsp.Ronald S. Bultje2013-01-22
| | | | | | Now, nellymoserenc and aacenc no longer depends on dsputil. Independent of this patch, wmaprodec also does not depend on dsputil, so I removed it from there also.
* floatdsp: move vector_fmul_add from dsputil to avfloatdsp.Ronald S. Bultje2013-01-22
|
* x86: Add a Yasm-based emms() replacementMartin Storsjö2013-01-18
| | | | | | | This provides a fallback when building with Yasm enabled, but neither inline assembly, nor the _mm_empty intrinsic are available or enabled. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* x86inc: Add cvisible macro for C functions with public prefixDiego Biurrun2013-01-18
| | | | | | This allows defining externally visible library symbols. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* x86inc: Rename "program_name" to "private_prefix"Diego Biurrun2013-01-18
| | | | | | | The new name is more descriptive and will allow defining a separate public prefix for externally visible library symbols. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* float_dsp: Add #ifdef HAVE_INLINE_ASM around vector_fmul_windowMartin Storsjö2013-01-17
| | | | | | This fixes builds on 64bit MSVC. Signed-off-by: Martin Storsjö <martin@martin.st>
* lavc: Move vector_fmul_window to AVFloatDSPContextJustin Ruggles2013-01-16
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* lavu: Add a fate test for the HMAC APIMartin Storsjö2013-01-15
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* x86: Add PAVGB macro to abstract pavgb/pavgusb instruction via cpuflagsDiego Biurrun2013-01-15
|
* x86: ABSB2: port to cpuflagsDiego Biurrun2013-01-15
|
* x86: ABSB: port to cpuflagsDiego Biurrun2013-01-15
|