[libav-devel] [PATCH] configure: enable pic for shared libs on AArch64

2013-01-10 Thread Mans Rullgard
From: Marcin Juszkiewicz Signed-off-by: Marcin Juszkiewicz --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 065c7aa..ad9e93e 100755 --- a/configure +++ b/configure @@ -2796,7 +2796,7 @@ check_64bit(){ } case "$arch" in -alpha|

[libav-devel] [PATCH 2/2] lavc: do not include dsputil.h in bit_depth_template.c

2012-12-11 Thread Mans Rullgard
This file does not itself add a dependency on dsputil.h. Signed-off-by: Mans Rullgard --- libavcodec/bit_depth_template.c | 2 -- libavcodec/h264idct_template.c | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/libavcodec/bit_depth_template.c b/libavcodec

[libav-devel] [PATCH 1/2] lavc: move some SWAR functions from dsputil to mathops

2012-12-11 Thread Mans Rullgard
Signed-off-by: Mans Rullgard --- libavcodec/dsputil.h | 23 --- libavcodec/mathops.h | 23 +++ libavcodec/sh4/dsputil_align.c | 1 + 3 files changed, 24 insertions(+), 23 deletions(-) diff --git a/libavcodec/dsputil.h b/libavcodec

[libav-devel] [PATCH] build: fix 'clean' target

2012-12-10 Thread Mans Rullgard
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 --- Makefile| 1 - common.mak | 6 ++ library.mak | 2

[libav-devel] [PATCH] sh4: dsputil: remove duplicate of ff_gmc_c()

2012-12-09 Thread Mans Rullgard
This function is an exact duplicate of the generic one. Signed-off-by: Mans Rullgard --- libavcodec/sh4/dsputil_align.c | 1 - libavcodec/sh4/qpel.c | 57 -- 2 files changed, 58 deletions(-) diff --git a/libavcodec/sh4/dsputil_align.c b

[libav-devel] [PATCH] configure: fix automatic processing of _extralibs in check_deps

2012-12-09 Thread Mans Rullgard
This fixes the automatic use of $foo_extralibs when feature foo is enabled indirectly through a _select or _suggest. Signed-off-by: Mans Rullgard --- configure | 19 +++ 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/configure b/configure index fcfd5ee..7340360

[libav-devel] [PATCH] dsputil: remove unused macro WRAPPER8_16

2012-12-09 Thread Mans Rullgard
This macro has never been used. Signed-off-by: Mans Rullgard --- libavcodec/dsputil.h | 6 -- 1 file changed, 6 deletions(-) diff --git a/libavcodec/dsputil.h b/libavcodec/dsputil.h index c3ab25e..5d4ab33 100644 --- a/libavcodec/dsputil.h +++ b/libavcodec/dsputil.h @@ -622,12 +622,6

[libav-devel] [PATCH 1/2] dsputil: drop non-compliant "fast" qpel mc functions

2012-12-08 Thread Mans Rullgard
--- libavcodec/dsputil.c | 16 - libavcodec/dsputil.h | 3 -- libavcodec/h263dec.c | 5 +-- libavcodec/h264.c | 11 ++- libavcodec/x86/dsputil_avg_template.c | 51 - libavcodec/x86/dspu

[libav-devel] [RFC PATCH 0/2] Separate h264 qpel from dsputil

2012-12-08 Thread Mans Rullgard
This is a rough stab at splitting off h264 qpel from dsputil. It is ugly in places and incomplete (arm and ppc not updated), but it builds and passes tests. Comments welcome. Mans Rullgard (2): dsputil: drop non-compliant "fast" qpel mc functions Separate h264 qpel from dsptuil

[libav-devel] [PATCH 1/2] takdec: fix remaining LOCAL_ALIGNED initialisation

2012-12-07 Thread Mans Rullgard
Signed-off-by: Mans Rullgard --- libavcodec/takdec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavcodec/takdec.c b/libavcodec/takdec.c index 0ac870c..d47db48 100644 --- a/libavcodec/takdec.c +++ b/libavcodec/takdec.c @@ -601,10 +601,12 @@ static int decorrelate

[libav-devel] [PATCH 2/2] Make LCOAL_ALIGNED syntactically similar on all systems

2012-12-07 Thread Mans Rullgard
This changes the LOCAL_ALIGNED definition on systems where DECLARE_ALIGNED is used such 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 --- libavcodec/dsputil.h | 4 +++- 1 file changed, 3

[libav-devel] [PATCH] takdec: fix initialisation of LOCAL_ALIGNED array

2012-12-07 Thread Mans Rullgard
When LOCAL_ALIGNED uses manual alignment initialisation is not possible. Signed-off-by: Mans Rullgard --- libavcodec/takdec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavcodec/takdec.c b/libavcodec/takdec.c index 87fcf83..0ac870c 100644 --- a/libavcodec/takdec.c

[libav-devel] [PATCH] lavf: fix arithmetic overflows in avformat_seek_file()

2012-12-07 Thread Mans Rullgard
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 --- libavformat/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[libav-devel] [PATCH] arm: fix use of uninitialised value in ff_fft_fixed_init_arm()

2012-12-06 Thread Mans Rullgard
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

[libav-devel] [PATCH v4] arm: detect cpu features at runtime on Linux

2012-12-04 Thread Mans Rullgard
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 --- This version does not rely on headers missing on Android, but rather includes a copy of the (trivial

[libav-devel] [PATCH] arm: rename ARMVFP config symbol to VFP

2012-12-04 Thread Mans Rullgard
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 --- This applies on top of some of the patches from the runtime detection set. --- Makefile| 2 +- arch.mak| 2

[libav-devel] [PATCH v3] arm: detect cpu features at runtime on Linux

2012-12-04 Thread Mans Rullgard
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 --- HWCAP_TLS is a relatively recent addition and systems without it can still be found. --- configure

[libav-devel] [PATCH] fate: workaround for slighly broken 'test' shell builtin

2012-12-04 Thread Mans Rullgard
Some shells, e.g. minix3, have a broken 'test' builtin which fails if the first operand of a binary operator looks like a unary operator. Prefixing the values with 'x' prevents this from happening. Signed-off-by: Mans Rullgard --- tests/fate-run.sh | 2 +- 1 file change

[libav-devel] [PATCH v2 1/2] configure: arm: detect toolchain default arch version

2012-12-03 Thread Mans Rullgard
added to CFLAGS and ASFLAGS, which in turn lets us do proper instruction set tests with the assembler. Signed-off-by: Mans Rullgard --- configure | 32 1 file changed, 32 insertions(+) diff --git a/configure b/configure index 0583e1d..582da76 100755 --- a

[libav-devel] [PATCH v2 2/2] configure: arm: set fast_clz and fast_unaligned in cpuflags section

2012-12-03 Thread Mans Rullgard
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 --- configure | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a

[libav-devel] [PATCH 08/10] arm: use HAVE*_INLINE/EXTERNAL macros for conditional compilation

2012-12-03 Thread Mans Rullgard
These macros reflect the actual capabilities required here. Signed-off-by: Mans Rullgard --- libavcodec/arm/aac.h | 4 ++-- libavcodec/arm/dca.h | 4 ++-- libavcodec/arm/dsputil_arm.S | 2 +- libavcodec/arm/mathops.h | 6 +++--- libavcodec/arm/vp56_arith.h | 2

[libav-devel] [PATCH 09/10] configure: arm: make _inline arch ext symbols depend on inline_asm

2012-12-03 Thread Mans Rullgard
This makes --disable-inline-asm work as expected. Signed-off-by: Mans Rullgard --- configure | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure b/configure index 8204a26..99b0e71 100755 --- a/configure +++ b/configure @@ -1396,6 +1396,8 @@ armvfp_deps="arm" neon

[libav-devel] [PATCH 07/10] configure: arm: check inline and external asm support for extensions

2012-12-03 Thread Mans Rullgard
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 --- configure | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/configure b/configure index d12afa0..8204a26 100755

[libav-devel] [PATCH 10/10] arm: detect cpu features at runtime on Linux

2012-12-03 Thread Mans Rullgard
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 --- configure | 9 +++- libavutil/arm/cpu.c | 60

[libav-devel] [PATCH 06/10] configure: add check_insn function

2012-12-03 Thread Mans Rullgard
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 --- configure | 6 ++ 1 file changed, 6 insertions(+) diff --git a/configure b/configure index ed84630..d12afa0

[libav-devel] [PATCH 04/10] configure: arm: set fast_clz and fast_unaligned in cpuflags section

2012-12-03 Thread Mans Rullgard
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 --- configure | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a

[libav-devel] [PATCH 05/10] configure: clean up check_inline_asm and check_as functions

2012-12-03 Thread Mans Rullgard
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 --- configure | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/configure b/configure index

[libav-devel] [PATCH 03/10] configure: arm: detect toolchain default arch version

2012-12-03 Thread Mans Rullgard
CFLAGS and ASFLAGS, which in turn lets us do proper instruction set tests with the assembler. Signed-off-by: Mans Rullgard --- configure | 22 ++ 1 file changed, 22 insertions(+) diff --git a/configure b/configure index 0583e1d..8c1ef6d 100755 --- a/configure +++ b/configure

[libav-devel] [PATCH 01/10] dct-test: arm: indicate required cpu features for optimised funcs

2012-12-03 Thread Mans Rullgard
Signed-off-by: Mans Rullgard --- libavcodec/dct-test.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavcodec/dct-test.c b/libavcodec/dct-test.c index c480aec..3ce0270 100644 --- a/libavcodec/dct-test.c +++ b/libavcodec/dct-test.c @@ -120,13 +120,13 @@ static const

[libav-devel] [PATCH 02/10] configure: do not bypass cpuflags section if --cpu not given

2012-12-03 Thread Mans Rullgard
This will allow arch-specific ways of determining the target variant when none is specified on the command line. Signed-off-by: Mans Rullgard --- configure | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/configure b/configure index 3c75398..0583e1d 100755 --- a

[libav-devel] [PATCH] configure: move arm arch extensions to a separate variable

2012-12-01 Thread Mans Rullgard
Signed-off-by: Mans Rullgard --- configure | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/configure b/configure index ec5cd1f..51471bf 100755 --- a/configure +++ b/configure @@ -1094,6 +1094,15 @@ ARCH_LIST=' x86_64 ' +ARCH_EX

[libav-devel] [PATCH] configure: arm: detect default thumb state of compiler

2012-12-01 Thread Mans Rullgard
This makes configure honour the compiler default if thumb is not explicitly enabled or disabled. Signed-off-by: Mans Rullgard --- configure | 1 + 1 file changed, 1 insertion(+) diff --git a/configure b/configure index 5008f71..ec5cd1f 100755 --- a/configure +++ b/configure @@ -3117,6 +3117,7

[libav-devel] [PATCH] configure: fix indentation in option parsing loop

2012-11-29 Thread Mans Rullgard
Signed-off-by: Mans Rullgard --- configure | 120 +++--- 1 file changed, 60 insertions(+), 60 deletions(-) diff --git a/configure b/configure index 38f52b1..c3b45a7 100755 --- a/configure +++ b/configure @@ -1945,66 +1945,66 @@ do_random

[libav-devel] [PATCH v2] x86: fix build without inline asm

2012-11-25 Thread Mans Rullgard
The qpel functions referenced here are not related to h264 and should thus never have been under CONFIG_H264QPEL. Signed-off-by: Mans Rullgard --- Now works without yasm too. --- libavcodec/x86/dsputil_mmx.c | 42 ++ 1 file changed, 22 insertions(+), 20

[libav-devel] [PATCH] x86: fix build without inline asm

2012-11-25 Thread Mans Rullgard
The qpel functions referenced here are not related to h264 and should thus never have been under CONFIG_H264QPEL. Signed-off-by: Mans Rullgard --- libavcodec/x86/dsputil_mmx.c | 40 +--- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a

[libav-devel] [PATCH] aacdec: fix signed overflows in lcg_random()

2012-11-24 Thread Mans Rullgard
Signed-off-by: Mans Rullgard --- libavcodec/aacdec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavcodec/aacdec.c b/libavcodec/aacdec.c index 59f39fd..0319790 100644 --- a/libavcodec/aacdec.c +++ b/libavcodec/aacdec.c @@ -750,7 +750,8 @@ static int

[libav-devel] [PATCH] base64: fix signed overflow in shift

2012-11-24 Thread Mans Rullgard
Signed-off-by: Mans Rullgard --- libavutil/base64.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavutil/base64.c b/libavutil/base64.c index 73872b8..c1fba89 100644 --- a/libavutil/base64.c +++ b/libavutil/base64.c @@ -44,10 +44,10 @@ static const uint8_t map2

[libav-devel] [PATCH] configure: sort cpuflags section by architecture

2012-11-18 Thread Mans Rullgard
Signed-off-by: Mans Rullgard --- configure | 153 +++--- 1 file changed, 77 insertions(+), 76 deletions(-) diff --git a/configure b/configure index dbd4caf..b9ba79e 100755 --- a/configure +++ b/configure @@ -2530,6 +2530,71 @@ enable $arch

[libav-devel] [PATCH] configure: Refactor CPPFLAGS settings for glibc/uclibc

2012-11-17 Thread Mans Rullgard
From: Diego Biurrun Signed-off-by: Mans Rullgard --- configure | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure b/configure index fbc49dd..dbd4caf 100755 --- a/configure +++ b/configure @@ -2886,7 +2886,6 @@ case $target_os in add_cppflags

[libav-devel] [PATCH 1/2] build: set -U__STRICT_ANSI__ for newlib

2012-11-16 Thread Mans Rullgard
This is (erroneously) required to enable various things in the newlib headers. As cygwin uses newlib, it is covered by this. Signed-off-by: Mans Rullgard --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index af22b10..cfc7010 100755 --- a

[libav-devel] [PATCH 2/2] configure: add basic support for ARM AArch64

2012-11-16 Thread Mans Rullgard
Signed-off-by: Mans Rullgard --- configure | 15 +++ 1 file changed, 15 insertions(+) diff --git a/configure b/configure index cfc7010..fbc49dd 100755 --- a/configure +++ b/configure @@ -1068,6 +1068,7 @@ THREADS_LIST=' ' ARCH_LIST=' +aarch64 alpha

[libav-devel] [PATCH/RFC] parisc: work around bug in gcc 4.3 and later

2012-11-15 Thread Mans Rullgard
A bug in tail call optimisation in gcc 4.3 and later on parisc causes numerous tests to fail. Disabling this optimisation gives a working build. See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55023 Signed-off-by: Mans Rullgard --- The chances of this bug being fixed appear slim. For versions

[libav-devel] [PATCH] ppc: do not pass redundant compiler flags

2012-11-13 Thread Mans Rullgard
The -mpowerpc64 and -mpowerpc-gfxopt flags are implicitly set by -mcpu as needed. Passing them explicitly is redundant and can conflict with user-supplied flags. Signed-off-by: Mans Rullgard --- configure | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/configure

[libav-devel] [PATCH] avutil: change GET_UTF8 to not use av_log2()

2012-11-13 Thread Mans Rullgard
This removes an inter-library dependency on ff_log2_tab causing linking errors in some configurations. Signed-off-by: Mans Rullgard --- libavutil/common.h | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libavutil/common.h b/libavutil/common.h index 3465863..cc4df16

[libav-devel] [PATCH] configure: properly support DEC/Compaq compiler

2012-11-12 Thread Mans Rullgard
Signed-off-by: Mans Rullgard --- Although obscure, we should either support this compiler properly or not pretend to support it at all. Since it does produce a working build and provides some useful warnings rarely found in other compilers, keeping it seems like a good choice. --- configure

[libav-devel] [PATCH 2/2] ppc: replace pointer casting with AV_COPY32

2012-11-10 Thread Mans Rullgard
This removes warnings about strict aliasing violations. Signed-off-by: Mans Rullgard --- libavcodec/ppc/h264_altivec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavcodec/ppc/h264_altivec.c b/libavcodec/ppc/h264_altivec.c index 05a5c51..73e2adb 100644 --- a

[libav-devel] [PATCH 1/2] ppc: fix some unused variable warnings

2012-11-10 Thread Mans Rullgard
The third argument of OP_U8_ALTIVEC is evaluated at most once so there is no need for a potentially unused temporary variable. Signed-off-by: Mans Rullgard --- libavcodec/ppc/h264_altivec_template.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/libavcodec

[libav-devel] [PATCH] configure: fix print_config() with broke awks

2012-10-30 Thread Mans Rullgard
Some awk versions do not treat the result of unary + on a (numeric) string as numeric, giving wrong results when used in a boolean context Using unary - instead is logically equivalent works as expected. Signed-off-by: Mans Rullgard --- Tested on Tru64. --- configure | 2 +- 1 file changed, 1

[libav-devel] [PATCH 1/3] configure: remove support for -n flag in print_enabled()

2012-10-27 Thread Mans Rullgard
This flag is no longer used. Signed-off-by: Mans Rullgard --- configure | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/configure b/configure index 250d640..62a864e 100755 --- a/configure +++ b/configure @@ -592,11 +592,10 @@ print_config(){ } print_enabled

[libav-devel] [PATCH 3/3] configure: list external libs used using print_enabled()

2012-10-27 Thread Mans Rullgard
This cuts some lines from the script as well as the output and simplifies maintenance. Signed-off-by: Mans Rullgard --- configure | 29 - 1 file changed, 4 insertions(+), 25 deletions(-) diff --git a/configure b/configure index 1c5c595..9217b53 100755 --- a

[libav-devel] [PATCH 2/3] configure: move list of external libs to a separate variable

2012-10-27 Thread Mans Rullgard
Signed-off-by: Mans Rullgard --- configure | 42 +++--- 1 file changed, 23 insertions(+), 19 deletions(-) diff --git a/configure b/configure index 62a864e..1c5c595 100755 --- a/configure +++ b/configure @@ -983,26 +983,8 @@ PROGRAM_LIST=" avs

[libav-devel] [PATCH] configure: rewrite print_config() function using awk

2012-10-27 Thread Mans Rullgard
This is much faster with slow shells and noticeably faster even with bash on a fast Linux system. Signed-off-by: Mans Rullgard --- configure | 40 +++- 1 file changed, 19 insertions(+), 21 deletions(-) diff --git a/configure b/configure index 0e2fcba

[libav-devel] [PATCH] configure: detect sparc64 automatically

2012-10-27 Thread Mans Rullgard
Signed-off-by: Mans Rullgard --- configure | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 9c78397..d63ce48 100755 --- a/configure +++ b/configure @@ -2499,9 +2499,8 @@ case "$arch" in sh4|sh) arch="sh4"

[libav-devel] [PATCH] mpegvideo: simplify dxy calculation in hpel_motion()

2012-10-27 Thread Mans Rullgard
Signed-off-by: Mans Rullgard --- libavcodec/mpegvideo_motion.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/libavcodec/mpegvideo_motion.c b/libavcodec/mpegvideo_motion.c index 9168793..4ea31ad 100644 --- a/libavcodec/mpegvideo_motion.c +++ b/libavcodec

[libav-devel] [PATCH 09/11] amrwbdec: fix invalid pointer arithmetic

2012-10-26 Thread Mans Rullgard
behavior is undefined. Signed-off-by: Mans Rullgard --- libavcodec/amrwbdec.c | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/libavcodec/amrwbdec.c b/libavcodec/amrwbdec.c index 5cc96ab..c9c793f 100644 --- a/libavcodec/amrwbdec.c +++ b/libavcodec

[libav-devel] [PATCH 11/11] vp8: fix memset() crossing array boundary

2012-10-26 Thread Mans Rullgard
Indexing across array boundaries is not allowed by C99. Signed-off-by: Mans Rullgard --- libavcodec/vp8.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavcodec/vp8.c b/libavcodec/vp8.c index 2766c9e..d9902c4 100644 --- a/libavcodec/vp8.c +++ b/libavcodec/vp8.c

[libav-devel] [PATCH 08/11] avserver: use socklen_t where appropriate

2012-10-26 Thread Mans Rullgard
Various socket functions expect a pointer to socklen_t which is not necessarily int. Signed-off-by: Mans Rullgard --- avserver.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/avserver.c b/avserver.c index 994edcd..f9d85d8 100644 --- a/avserver.c +++ b/avserver.c

[libav-devel] [PATCH 10/11] h264: fix invalid pointer arithmetic

2012-10-26 Thread Mans Rullgard
behavior is undefined. Signed-off-by: Mans Rullgard --- libavcodec/h264_cavlc.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libavcodec/h264_cavlc.c b/libavcodec/h264_cavlc.c index 8996057..8702122 100644 --- a/libavcodec/h264_cavlc.c +++ b/libavcodec/h264_cavlc.c

[libav-devel] [PATCH 06/11] network: use HAVE_THREADS instead of local hack

2012-10-26 Thread Mans Rullgard
HAVE_THREADS is set in config.h if pthreads or w32threads is available, which presumably the proper condition here. Also fixes undefined behaviour in preprocessor directives. Signed-off-by: Mans Rullgard --- libavformat/network.c | 14 ++ 1 file changed, 6 insertions(+), 8

[libav-devel] [PATCH 07/11] udp: use socklen_t where appropriate

2012-10-26 Thread Mans Rullgard
getsockname() takes a pointer to socklen_t which is not necessarily int. Signed-off-by: Mans Rullgard --- libavformat/udp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/udp.c b/libavformat/udp.c index e848ecd..373a4c9 100644 --- a/libavformat/udp.c +++ b

[libav-devel] [PATCH 04/11] avio: fix pointer type mismatches in avio_enum_protocols()

2012-10-26 Thread Mans Rullgard
Signed-off-by: Mans Rullgard --- libavformat/avio.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libavformat/avio.c b/libavformat/avio.c index 45ee866..a43b241 100644 --- a/libavformat/avio.c +++ b/libavformat/avio.c @@ -85,11 +85,11 @@ const AVClass

[libav-devel] [PATCH 05/11] mov: make enum MovChannelLayoutTag definition standards compliant

2012-10-26 Thread Mans Rullgard
The C99 standard requires that "the expression that defines the value of an enumeration constant shall be an integer constant expression that has a value representable as an int." Signed-off-by: Mans Rullgard --- libavformat/mov_chan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletio

[libav-devel] [PATCH 02/11] assdec: fix qsort() callback signature

2012-10-26 Thread Mans Rullgard
This changes the event_cmp() function to the correct signature, avoiding an ugly cast. Signed-off-by: Mans Rullgard --- libavformat/assdec.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libavformat/assdec.c b/libavformat/assdec.c index 3d39845..0041ca4 100644 --- a

[libav-devel] [PATCH 01/11] buffersink: remove stray semicolon after function definition

2012-10-26 Thread Mans Rullgard
Signed-off-by: Mans Rullgard --- libavfilter/buffersink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/buffersink.c b/libavfilter/buffersink.c index 73af25d..c68b909 100644 --- a/libavfilter/buffersink.c +++ b/libavfilter/buffersink.c @@ -57,7 +57,7 @@ static

[libav-devel] [PATCH 03/11] af_channelmap: remove stray enum declaration

2012-10-26 Thread Mans Rullgard
Signed-off-by: Mans Rullgard --- libavfilter/af_channelmap.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libavfilter/af_channelmap.c b/libavfilter/af_channelmap.c index 8c49d10..f70b481 100644 --- a/libavfilter/af_channelmap.c +++ b/libavfilter/af_channelmap.c @@ -124,7 +124,6 @@ static

[libav-devel] [PATCH] av_memcpy_backptr: optimise some special cases

2012-10-26 Thread Mans Rullgard
- Add special cases for offsets of 2, 3, or 4 bytes. This means the offset is always >4 in the generic case, allowing 32-bit copies to be used there. - Don't use memcpy() for sizes less than 16 bytes. Signed-off-by: Mans Rullgard --- libavutil/mem

[libav-devel] [PATCH] configure: fix tests for 2-arg math functions

2012-10-26 Thread Mans Rullgard
Signed-off-by: Mans Rullgard --- configure | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 39649ab..fdd5446 100755 --- a/configure +++ b/configure @@ -785,11 +785,13 @@ EOF check_mathfunc(){ log check_mathfunc "$@"

[libav-devel] [PATCH 2/2] configure: sanitise sparc vis check

2012-10-25 Thread Mans Rullgard
It is wrong to force -mcpu=ultrasparc when checking for vis. Signed-off-by: Mans Rullgard --- configure | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/configure b/configure index 40e24f1..e827192 100755 --- a/configure +++ b/configure @@ -3132,9 +3132,7 @@ EOF elif

[libav-devel] [PATCH 1/2] configure: recognise more sparc variants as --cpu argument

2012-10-25 Thread Mans Rullgard
From: Michael Kostylev Signed-off-by: Mans Rullgard --- configure | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 872d9e5..40e24f1 100755 --- a/configure +++ b/configure @@ -2593,12 +2593,12 @@ elif enabled x86; then elif enabled sparc

[libav-devel] [PATCH 4/4] configure: detect parisc64 automatically

2012-10-24 Thread Mans Rullgard
Signed-off-by: Mans Rullgard --- configure | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/configure b/configure index 7559605..01b0f67 100755 --- a/configure +++ b/configure @@ -2482,13 +2482,9 @@ case "$arch" in mips*|IP*)

[libav-devel] [PATCH 3/4] configure: detect ppc64 automatically

2012-10-24 Thread Mans Rullgard
Signed-off-by: Mans Rullgard --- configure | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/configure b/configure index c1f7fe0..7559605 100755 --- a/configure +++ b/configure @@ -2489,13 +2489,9 @@ case "$arch" in arch="parisc"

[libav-devel] [PATCH 1/4] configure: generalise 64-bit test

2012-10-24 Thread Mans Rullgard
Signed-off-by: Mans Rullgard --- configure | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 158ce99..c626e07 100755 --- a/configure +++ b/configure @@ -2694,13 +2694,20 @@ EOF check_host_cflags -std=c99 check_host_cflags -Wall

[libav-devel] [PATCH 2/4] configure: detect mips64 automatically

2012-10-24 Thread Mans Rullgard
Signed-off-by: Mans Rullgard --- configure | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/configure b/configure index c626e07..c1f7fe0 100755 --- a/configure +++ b/configure @@ -2479,13 +2479,9 @@ case "$arch" in arm*) arch="arm&quo

[libav-devel] [PATCH 2/2] dfa: use av_memcpy_backptr() where previously impossible

2012-10-23 Thread Mans Rullgard
Since the requirement for output padding has been lifted, we can use av_memcpy_backptr() here as well. Signed-off-by: Mans Rullgard --- libavcodec/dfa.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libavcodec/dfa.c b/libavcodec/dfa.c index 39f0f64..5d227e9 100644 --- a

[libav-devel] [PATCH 1/2] Remove need for padding in av_memcpy_backptr()

2012-10-23 Thread Mans Rullgard
Signed-off-by: Mans Rullgard --- libavutil/lzo.c | 16 libavutil/lzo.h | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/libavutil/lzo.c b/libavutil/lzo.c index 101d4f4..c17d32f 100644 --- a/libavutil/lzo.c +++ b/libavutil/lzo.c @@ -132,13 +132,14 @@ static

[libav-devel] [PATCH 2/2] fate: check that dependencies actually exist

2012-10-22 Thread Mans Rullgard
This causes make to exit with an error message if a nonexistent dependency is specified rather than silently dropping the test. Signed-off-by: Mans Rullgard --- tests/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/Makefile b/tests/Makefile index de4d928

[libav-devel] [PATCH 1/2] fate: fix ENCMUX macro

2012-10-22 Thread Mans Rullgard
This matches how it is actually being called. Signed-off-by: Mans Rullgard --- tests/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Makefile b/tests/Makefile index 93eb548..de4d928 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -34,7 +34,7 @@ ENCDEC2

[libav-devel] [PATCH v2] build: Plan 9 support

2012-10-22 Thread Mans Rullgard
tion. Signed-off-by: Mans Rullgard --- Review comments addressed. Less stuff in compat/, added link to ready to use stdint.h. --- compat/plan9/head| 10 compat/plan9/main.c | 34 ++ compat/plan9/printf | 2 ++ configure| 22 ++

[libav-devel] [PATCH] ARM: reinstate optimised intmath.h

2012-10-20 Thread Mans Rullgard
Use of the ARM optimised intmath.h was accidentally dropped in 9734b8b. Signed-off-by: Mans Rullgard --- libavutil/intmath.h | 4 1 file changed, 4 insertions(+) diff --git a/libavutil/intmath.h b/libavutil/intmath.h index b4b87e6..2cb3132 100644 --- a/libavutil/intmath.h +++ b/libavutil

[libav-devel] [PATCH v2] build: add rules to generate preprocessed source files

2012-10-19 Thread Mans Rullgard
This is useful for debugging. Dependencies for these files are not generated due to limitations in many compilers. Signed-off-by: Mans Rullgard --- Added the second -test.i rule pointed out by Diego. --- Makefile| 3 +++ configure | 1 + library.mak | 11 +-- 3 files changed

[libav-devel] [PATCH] ARM: fix overreads in neon h264 chroma mc

2012-10-19 Thread Mans Rullgard
The loops were reading ahead one line, which could end up outside the buffer for reference blocks at the edge of the picture. Removing this readahead has no measurable performance impact. Signed-off-by: Mans Rullgard --- libavcodec/arm/h264cmc_neon.S | 86

[libav-devel] [PATCH] configure: fix libcdio check

2012-10-18 Thread Mans Rullgard
The compiler/linker flags passed to check_lib2 should not be quoted. Signed-off-by: Mans Rullgard --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 5dd5ef2..f12335c 100755 --- a/configure +++ b/configure @@ -3419,7 +3419,7 @@ enabled

[libav-devel] [PATCH 1/2] celp_math: rename ff_log2 to ff_log2_q15

2012-10-18 Thread Mans Rullgard
This name is more descriptive as the function returns a fixed-point value with 15 fraction bits. Signed-off-by: Mans Rullgard --- libavcodec/acelp_pitch_delay.c | 2 +- libavcodec/celp_math.c | 2 +- libavcodec/celp_math.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions

[libav-devel] [PATCH 2/2] avutil: remove inline av_log2 from public API

2012-10-18 Thread Mans Rullgard
This removes inline av_log2 and av_log2_16bit from the public API, instead exporting them as regular functions. In-tree code still gets the inline and otherwise optimised variants. Signed-off-by: Mans Rullgard --- No change to linked into avconv. --- libavutil/Makefile | 1 + libavutil

[libav-devel] [PATCH] aac: fix build with hardcoded tables

2012-10-18 Thread Mans Rullgard
, fixes the problems. Signed-off-by: Mans Rullgard --- libavcodec/aac.h | 1 - libavcodec/aac_tablegen.h | 1 - libavcodec/aac_tablegen_decl.h | 2 ++ 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/aac.h b/libavcodec/aac.h index 32baf9d..9c6ac27 100644

[libav-devel] [PATCH 8/8] fate: add dependencies for misc microsoft codecs

2012-10-17 Thread Mans Rullgard
Signed-off-by: Mans Rullgard --- tests/fate/microsoft.mak | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/fate/microsoft.mak b/tests/fate/microsoft.mak index da7bf76..a3ca3ed 100644 --- a/tests/fate/microsoft.mak +++ b/tests/fate/microsoft.mak @@ -1,4 +1,4

[libav-devel] [PATCH 7/8] fate-vc1: add dependencies

2012-10-17 Thread Mans Rullgard
Signed-off-by: Mans Rullgard --- tests/fate/microsoft.mak | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/fate/microsoft.mak b/tests/fate/microsoft.mak index 48bdb95..da7bf76 100644 --- a/tests/fate/microsoft.mak +++ b/tests/fate/microsoft.mak @@ -20,23

[libav-devel] [PATCH 6/8] fate-twinvq: add dependencies

2012-10-17 Thread Mans Rullgard
Signed-off-by: Mans Rullgard --- tests/fate/vqf.mak | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/fate/vqf.mak b/tests/fate/vqf.mak index 1867635..6256941 100644 --- a/tests/fate/vqf.mak +++ b/tests/fate/vqf.mak @@ -1,7 +1,7 @@ -FATE_SAMPLES_AVCONV += fate-twinvq

[libav-devel] [PATCH 2/8] fate: dependencies for demux tests

2012-10-17 Thread Mans Rullgard
Signed-off-by: Mans Rullgard --- tests/Makefile | 1 + tests/fate/demux.mak | 48 2 files changed, 25 insertions(+), 24 deletions(-) diff --git a/tests/Makefile b/tests/Makefile index 8fa8a02..be97d0c 100644 --- a/tests/Makefile +++ b

[libav-devel] [PATCH 5/8] fate-mpc: add dependencies

2012-10-17 Thread Mans Rullgard
Signed-off-by: Mans Rullgard --- tests/fate/mpc.mak | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/fate/mpc.mak b/tests/fate/mpc.mak index f30ba60..53d236e 100644 --- a/tests/fate/mpc.mak +++ b/tests/fate/mpc.mak @@ -1,13 +1,13 @@ -FATE_MPC += fate-mpc7

[libav-devel] [PATCH 3/8] fate-als: add dependencies

2012-10-17 Thread Mans Rullgard
Signed-off-by: Mans Rullgard --- tests/fate/als.mak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/fate/als.mak b/tests/fate/als.mak index ab3e1c0..5ec1189 100644 --- a/tests/fate/als.mak +++ b/tests/fate/als.mak @@ -7,5 +7,5 @@ endef $(foreach N,$(ALS_SUITE),$(eval

[libav-devel] [PATCH 4/8] fate-indeo: add dependencies

2012-10-17 Thread Mans Rullgard
Signed-off-by: Mans Rullgard --- tests/fate/indeo.mak | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/fate/indeo.mak b/tests/fate/indeo.mak index 783af5d..66f49d3 100644 --- a/tests/fate/indeo.mak +++ b/tests/fate/indeo.mak @@ -1,14 +1,14 @@ -FATE_INDEO

[libav-devel] [PATCH 1/8] fate: add a dependency helper macro

2012-10-17 Thread Mans Rullgard
Signed-off-by: Mans Rullgard --- tests/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/Makefile b/tests/Makefile index d3b4bcb..8fa8a02 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -33,6 +33,8 @@ ENCDEC2 = $(call ALLYES, $(firstword $(1))_ENCODER $(lastword $(1

[libav-devel] [PATCH] pcm: define AVCodec instances only for enabled codecs

2012-10-17 Thread Mans Rullgard
This defines an AVCodec only if the corresponding CONFIG option is enabled instead of using the broad CONFIG_ENCODERS/DECODERS. Signed-off-by: Mans Rullgard --- libavcodec/pcm.c | 82 +++- 1 file changed, 45 insertions(+), 37 deletions

[libav-devel] [PATCH] mips64: mark hi/lo registers clobbered in MAC64/MLS64 macros

2012-10-17 Thread Mans Rullgard
Signed-off-by: Mans Rullgard --- libavcodec/mips/mathops.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libavcodec/mips/mathops.h b/libavcodec/mips/mathops.h index 573745b..dd80f68 100644 --- a/libavcodec/mips/mathops.h +++ b/libavcodec/mips/mathops.h @@ -57,7 +57,8

[libav-devel] [PATCH] fate-lavfi: replace sed/grep/cut combos with awk

2012-10-17 Thread Mans Rullgard
Signed-off-by: Mans Rullgard --- tests/lavfi-regression.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/lavfi-regression.sh b/tests/lavfi-regression.sh index a315e72..05cc8cd 100755 --- a/tests/lavfi-regression.sh +++ b/tests/lavfi-regression.sh @@ -49,7 +49,7

[libav-devel] [PATCH v2 6/6] fate: list lavfi tests in a makefile

2012-10-16 Thread Mans Rullgard
Signed-off-by: Mans Rullgard --- Removed tabs. --- configure | 15 +-- tests/Makefile | 11 +-- tests/fate/avfilter.mak | 24 3 files changed, 26 insertions(+), 24 deletions(-) create mode 100644 tests/fate/avfilter.mak diff

[libav-devel] [PATCH v2 5/6] fate: dependencies for seek tests

2012-10-16 Thread Mans Rullgard
Signed-off-by: Mans Rullgard --- Fixed dependencies of seek-lavf_rm test. --- configure | 4 +- tests/Makefile | 6 +-- tests/fate/seek.mak | 119 3 files changed, 121 insertions(+), 8 deletions(-) create mode 100644 tests

[libav-devel] [PATCH v2 4/6] fate: handle lavf test dependencies entirely in make

2012-10-16 Thread Mans Rullgard
This makes the lavf tests depend on all codecs and formats they use. Signed-off-by: Mans Rullgard --- Fixed dependencies of lavf-rm test. --- configure | 47 +-- tests/Makefile | 8 ++-- tests/fate/avformat.mak | 53

[libav-devel] [PATCH v2 2/6] fate: dependencies for vsynth tests

2012-10-16 Thread Mans Rullgard
This makes the vsynth tests run only if the required codecs and formats are enabled. Signed-off-by: Mans Rullgard --- Collapsed lines with the same conditions. --- tests/fate/vcodec.mak | 101 -- 1 file changed, 49 insertions(+), 52 deletions

  1   2   3   4   5   6   7   8   9   10   >