Re: [libav-devel] [PATCH 1/3] configure: tms470: add mapping for -mfpu=vfpv3-d16 flag

2012-10-13 Thread Martin Storsjö
On Sat, 13 Oct 2012, Mans Rullgard wrote: Signed-off-by: Mans Rullgard m...@mansr.com --- configure | 1 + 1 file changed, 1 insertion(+) diff --git a/configure b/configure index 2890ab2..f770ca7 100755 --- a/configure +++ b/configure @@ -2219,6 +2219,7 @@ tms470_flags(){

Re: [libav-devel] [PATCH 2/3] configure: improve tms470 compiler usage with glibc

2012-10-13 Thread Martin Storsjö
On Sat, 13 Oct 2012, Mans Rullgard wrote: Apply flags to work around glibc quirks only if glibc is detected, and add a few more such flags. Do not mess with as/ld settings in probe_cc. This is not the proper place. Signed-off-by: Mans Rullgard m...@mansr.com --- configure | 12 +--- 1

Re: [libav-devel] [PATCH 3/3] build: tms470: work around glibc math.h problems

2012-10-13 Thread Janne Grunau
On 2012-10-13 03:31:29 +0100, Måns Rullgård wrote: The glibc definitions of INFINITY and NAN do not work with the tms470 compiler, nor do our usual fallbacks. Signed-off-by: Mans Rullgard m...@mansr.com --- compat/tms470/math.h | 7 +++ configure| 1 + 2 files changed, 8

Re: [libav-devel] [PATCH 3/3] build: tms470: work around glibc math.h problems

2012-10-13 Thread Martin Storsjö
On Sat, 13 Oct 2012, Mans Rullgard wrote: The glibc definitions of INFINITY and NAN do not work with the tms470 compiler, nor do our usual fallbacks. Signed-off-by: Mans Rullgard m...@mansr.com --- compat/tms470/math.h | 7 +++ configure| 1 + 2 files changed, 8 insertions(+)

Re: [libav-devel] [PATCH] configure: separate option-arguments from options to POSIX commands

2012-10-13 Thread Martin Storsjö
On Sat, 13 Oct 2012, Mans Rullgard wrote: POSIX says this about option syntax: If the SYNOPSIS of a standard utility shows an option with a mandatory option-argument, a conforming application shall use separate arguments for that option and its option-argument. However, a conforming

Re: [libav-devel] [PATCH 1/2] configure: work around bug in ash shell

2012-10-13 Thread Martin Storsjö
On Sat, 13 Oct 2012, Mans Rullgard wrote: The ash 'test' builtin misbehaves if the first operand of a binary operator looks like a unary operator. Signed-off-by: Mans Rullgard m...@mansr.com --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure

Re: [libav-devel] [PATCH 2/2] configure: recognise Minix as OS

2012-10-13 Thread Martin Storsjö
On Sat, 13 Oct 2012, Mans Rullgard wrote: No special setup is required for Minix. Signed-off-by: Mans Rullgard m...@mansr.com --- configure | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure b/configure index b076945..66806bf 100755 --- a/configure +++ b/configure @@ -2877,6

Re: [libav-devel] [PATCH 2/2] configure: recognise Minix as OS

2012-10-13 Thread Janne Grunau
On 2012-10-13 03:34:08 +0100, Måns Rullgård wrote: No special setup is required for Minix. Signed-off-by: Mans Rullgard m...@mansr.com --- configure | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure b/configure index b076945..66806bf 100755 --- a/configure +++

Re: [libav-devel] [PATCH] configure: separate option-arguments from options to POSIX commands

2012-10-13 Thread Måns Rullgård
Martin Storsjö mar...@martin.st writes: On Sat, 13 Oct 2012, Mans Rullgard wrote: POSIX says this about option syntax: If the SYNOPSIS of a standard utility shows an option with a mandatory option-argument, a conforming application shall use separate arguments for that option and its

[libav-devel] [PATCH] Add support for building shared libraries with MSVC

2012-10-13 Thread Martin Storsjö
From: Ronald S. Bultje rsbul...@gmail.com This requires the makedef perl script by Derek, which probably will go into the c99-to-c89 repo. That scripts produces a .def file, listing the symbols to be exported, based on the gcc version scripts and the built object files. To properly load

Re: [libav-devel] [PATCH] configure: separate option-arguments from options to POSIX commands

2012-10-13 Thread Martin Storsjö
On Sat, 13 Oct 2012, Måns Rullgård wrote: Martin Storsjö mar...@martin.st writes: On Sat, 13 Oct 2012, Mans Rullgard wrote: POSIX says this about option syntax: If the SYNOPSIS of a standard utility shows an option with a mandatory option-argument, a conforming application shall use

Re: [libav-devel] [PATCH] Add support for building shared libraries with MSVC

2012-10-13 Thread Måns Rullgård
Martin Storsjö mar...@martin.st writes: diff --git a/configure b/configure index 99830d8..5480ce0 100755 --- a/configure +++ b/configure @@ -2778,14 +2778,33 @@ case $target_os in shlibdir_default=$bindir_default SLIBPREF= SLIBSUF=.dll +if enabled_all

Re: [libav-devel] [PATCH] Add support for building shared libraries with MSVC

2012-10-13 Thread Luca Barbato
On 10/13/2012 12:46 PM, Martin Storsjö wrote: From: Ronald S. Bultje rsbul...@gmail.com This requires the makedef perl script by Derek, which probably will go into the c99-to-c89 repo. That scripts produces a .def file, listing the symbols to be exported, based on the gcc version scripts

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

2012-10-13 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 m...@mansr.com --- Makefile| 3 +++ configure | 1 + library.mak | 8 ++-- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git

Re: [libav-devel] [PATCH] Add support for building shared libraries with MSVC

2012-10-13 Thread Hendrik Leppkes
On Sat, Oct 13, 2012 at 12:55 PM, Måns Rullgård m...@mansr.com wrote: Martin Storsjö mar...@martin.st writes: diff --git a/configure b/configure index 99830d8..5480ce0 100755 --- a/configure +++ b/configure @@ -2778,14 +2778,33 @@ case $target_os in

Re: [libav-devel] [PATCH] Add support for building shared libraries with MSVC

2012-10-13 Thread Måns Rullgård
Hendrik Leppkes h.lepp...@gmail.com writes: On Sat, Oct 13, 2012 at 12:55 PM, Måns Rullgård m...@mansr.com wrote: Martin Storsjö mar...@martin.st writes: diff --git a/configure b/configure index 99830d8..5480ce0 100755 --- a/configure +++ b/configure @@ -2778,14 +2778,33 @@ case

Re: [libav-devel] [PATCH 1/2] avfilter: fix graphparser memleaks on error paths

2012-10-13 Thread Janne Grunau
On 2012-10-09 22:15:44 +0200, Janne Grunau wrote: Fixes CID700635, CID700636 and CID732274. --- libavfilter/graphparser.c | 24 +++- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c index

[libav-devel] [PATCH] libavcodec/pcm-mpeg.c: Correct bitrate calculation and debug units

2012-10-13 Thread Christian Schmidt
--- libavcodec/pcm-mpeg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/pcm-mpeg.c b/libavcodec/pcm-mpeg.c index 4a38648..602abab 100644 --- a/libavcodec/pcm-mpeg.c +++ b/libavcodec/pcm-mpeg.c @@ -109,12 +109,12 @@ static int

[libav-devel] [PATCH] announce plain 9 beta 1 release

2012-10-13 Thread Reinhard Tartler
--- src/download | 22 src/news | 82 ++ 2 files changed, 104 insertions(+) This is my first shot at the news site entry. Please revise and push at your will. Reinhard diff --git a/src/download b/src/download

Re: [libav-devel] [PATCH] announce plain 9 beta 1 release

2012-10-13 Thread Luca Barbato
On 10/13/2012 04:18 PM, Reinhard Tartler wrote: The ffmpeg transcoding tool, +kept for compatibility in 0.8, has also been dropped. I'd mention avconv there. the rest looks fine. lu ___ libav-devel mailing list libav-devel@libav.org

Re: [libav-devel] [PATCH] libavcodec/pcm-mpeg.c: Correct bitrate calculation and debug units

2012-10-13 Thread Luca Barbato
On 10/13/2012 03:45 PM, Christian Schmidt wrote: --- libavcodec/pcm-mpeg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/pcm-mpeg.c b/libavcodec/pcm-mpeg.c index 4a38648..602abab 100644 --- a/libavcodec/pcm-mpeg.c +++ b/libavcodec/pcm-mpeg.c @@

Re: [libav-devel] [PATCH 1/2] avfilter: fix graphparser memleaks on error paths

2012-10-13 Thread Luca Barbato
On 10/09/2012 10:15 PM, Janne Grunau wrote: Fixes CID700635, CID700636 and CID732274. --- libavfilter/graphparser.c | 24 +++- 1 file changed, 15 insertions(+), 9 deletions(-) Ok. ___ libav-devel mailing list

Re: [libav-devel] [PATCH] Add support for building shared libraries with MSVC

2012-10-13 Thread Diego Biurrun
On Sat, Oct 13, 2012 at 01:46:38PM +0300, Martin Storsjö wrote: --- a/configure +++ b/configure @@ -2778,14 +2778,33 @@ case $target_os in shlibdir_default=$bindir_default SLIBPREF= SLIBSUF=.dll +if enabled_all msvc shared; then +# Link to

[libav-devel] [PATCH 1/2] H264: Remove 3dnow qpel code.

2012-10-13 Thread Daniel Kang
The only CPUs that have 3dnow and don't have mmxext are 12 years old. Moreover, AMD has deprecated 3dnow. --- libavcodec/x86/dsputil_avg_template.c |8 +- libavcodec/x86/dsputil_mmx.c | 142 + libavcodec/x86/h264_qpel.c|4 - 3 files

Re: [libav-devel] [PATCH 2/2] H.264: Convert 8-bit qpel inlined assembly to yasm

2012-10-13 Thread Daniel Kang
On Sat, Oct 13, 2012 at 11:04 AM, Daniel Kang daniel.d.k...@gmail.com wrote: --- libavcodec/x86/Makefile |4 +- libavcodec/x86/dsputil.asm| 222 +++ libavcodec/x86/dsputil_avg_template.c | 136 +--- libavcodec/x86/dsputil_mmx.c | 105 +--

Re: [libav-devel] [PATCH 1/2] H264: Remove 3dnow qpel code.

2012-10-13 Thread Måns Rullgård
Daniel Kang daniel.d.k...@gmail.com writes: Moreover, AMD has deprecated 3dnow. It's use deprecated on _new_ CPUs. If you're stuck with an old CPU, there's precious little you can do about it. -- Måns Rullgård m...@mansr.com ___ libav-devel mailing

Re: [libav-devel] [PATCH 2/3] fate: Add timefilter test

2012-10-13 Thread Diego Biurrun
On Fri, Oct 05, 2012 at 09:08:40PM +0200, Diego Biurrun wrote: --- tests/Makefile |2 ++ tests/fate/libavdevice.mak |5 + tests/ref/fate/timefilter |6 ++ 3 files changed, 13 insertions(+), 0 deletions(-) create mode 100644 tests/fate/libavdevice.mak

Re: [libav-devel] [PATCH 2/2] H.264: Convert 8-bit qpel inlined assembly to yasm

2012-10-13 Thread Daniel Kang
On Sat, Oct 13, 2012 at 11:31 AM, Måns Rullgård m...@mansr.com wrote: Daniel Kang daniel.d.k...@gmail.com writes: On Sat, Oct 13, 2012 at 11:04 AM, Daniel Kang daniel.d.k...@gmail.com wrote: --- libavcodec/x86/Makefile |4 +- libavcodec/x86/dsputil.asm| 222

Re: [libav-devel] [PATCH] libavcodec/pcm-mpeg.c: Correct bitrate calculation and debug units

2012-10-13 Thread Christian Schmidt
On 10/13/2012 04:27 PM, Luca Barbato wrote: On 10/13/2012 03:45 PM, Christian Schmidt wrote: --- libavcodec/pcm-mpeg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/pcm-mpeg.c b/libavcodec/pcm-mpeg.c index 4a38648..602abab 100644 ---

Re: [libav-devel] [PATCH 2/2] H.264: Convert 8-bit qpel inlined assembly to yasm

2012-10-13 Thread Måns Rullgård
Daniel Kang daniel.d.k...@gmail.com writes: On Sat, Oct 13, 2012 at 11:31 AM, Måns Rullgård m...@mansr.com wrote: Daniel Kang daniel.d.k...@gmail.com writes: On Sat, Oct 13, 2012 at 11:04 AM, Daniel Kang daniel.d.k...@gmail.com wrote: --- libavcodec/x86/Makefile |4 +-

Re: [libav-devel] [PATCH 2/2] H.264: Convert 8-bit qpel inlined assembly to yasm

2012-10-13 Thread Diego Biurrun
On Sat, Oct 13, 2012 at 10:04:50AM -0500, Daniel Kang wrote: --- a/libavcodec/x86/dsputil_avg_template.c +++ b/libavcodec/x86/dsputil_avg_template.c @@ -227,59 +176,6 @@ static void DEF(put_no_rnd_pixels8_l2)(uint8_t *dst, uint8_t *src1, uint8_t *src @@ -334,6 +230,7 @@ static void

Re: [libav-devel] [PATCH 2/2] H.264: Convert 8-bit qpel inlined assembly to yasm

2012-10-13 Thread Diego Biurrun
On Sat, Oct 13, 2012 at 10:04:50AM -0500, Daniel Kang wrote: --- libavcodec/x86/Makefile |4 +- libavcodec/x86/dsputil.asm| 222 +++ libavcodec/x86/dsputil_avg_template.c | 136 +--- libavcodec/x86/dsputil_mmx.c | 105 +--

Re: [libav-devel] [PATCH 2/2] H.264: Convert 8-bit qpel inlined assembly to yasm

2012-10-13 Thread Diego Biurrun
On Sat, Oct 13, 2012 at 10:04:50AM -0500, Daniel Kang wrote: --- a/libavcodec/x86/Makefile +++ b/libavcodec/x86/Makefile @@ -51,7 +51,9 @@ YASM-OBJS-$(CONFIG_H264DSP)+= x86/h264_deblock.o\ x86/h264_weight_10bit.o

Re: [libav-devel] [PATCH] announce plain 9 beta 1 release

2012-10-13 Thread Reinhard Tartler
Am 13.10.2012 10:25 schrieb Luca Barbato lu_z...@gentoo.org: On 10/13/2012 04:18 PM, Reinhard Tartler wrote: The ffmpeg transcoding tool, +kept for compatibility in 0.8, has also been dropped. I'd mention avconv there. the rest looks fine. In that case we should also update that part in

[libav-devel] [PATCH] nut: export codec_tag provided by rawvideo

2012-10-13 Thread Luca Barbato
Raw audio does not provide valid audio tags while rawvideo does. --- libavformat/nutenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/nutenc.c b/libavformat/nutenc.c index 6338924..9985cd9 100644 --- a/libavformat/nutenc.c +++ b/libavformat/nutenc.c @@ -385,7

Re: [libav-devel] [PATCH] Add support for building shared libraries with MSVC

2012-10-13 Thread Martin Storsjö
On Sat, 13 Oct 2012, Diego Biurrun wrote: On Sat, Oct 13, 2012 at 01:46:38PM +0300, Martin Storsjö wrote: --- a/configure +++ b/configure @@ -2778,14 +2778,33 @@ case $target_os in shlibdir_default=$bindir_default SLIBPREF= SLIBSUF=.dll +if enabled_all msvc

Re: [libav-devel] [PATCH 2/2] avutil: Give symbols used across libraries avpriv_ instead of ff_ prefixes

2012-10-13 Thread Martin Storsjö
On Thu, 4 Oct 2012, Diego Biurrun wrote: --- libavcodec/bmpenc.c |2 +- libavcodec/rawdec.c |2 +- libavcodec/utils.c |2 +- libavutil/imgutils.c |4 ++-- libavutil/imgutils.h |2 +- 5 files changed, 6 insertions(+), 6 deletions(-) Ok with me, this at least makes the

Re: [libav-devel] [PATCH 3/4] avutil: Do not make ff_ symbols globally visible.

2012-10-13 Thread Martin Storsjö
On Thu, 4 Oct 2012, Diego Biurrun wrote: --- libavutil/libavutil.v |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavutil/libavutil.v b/libavutil/libavutil.v index eb16ae1..e9f04cb 100644 --- a/libavutil/libavutil.v +++ b/libavutil/libavutil.v @@ -1,4 +1,4 @@

Re: [libav-devel] [PATCH 2/2] avutil: Give symbols used across libraries avpriv_ instead of ff_ prefixes

2012-10-13 Thread Måns Rullgård
Diego Biurrun di...@biurrun.de writes: --- libavcodec/bmpenc.c |2 +- libavcodec/rawdec.c |2 +- libavcodec/utils.c |2 +- libavutil/imgutils.c |4 ++-- libavutil/imgutils.h |2 +- 5 files changed, 6 insertions(+), 6 deletions(-) There seems to be only one such

[libav-devel] [PATCH 1/2] configure: check for mprotect

2012-10-13 Thread Mans Rullgard
Signed-off-by: Mans Rullgard m...@mansr.com --- configure | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure b/configure index 7be62fe..700e99d 100755 --- a/configure +++ b/configure @@ -1198,6 +1198,7 @@ HAVE_LIST= mkstemp mm_empty mmap +mprotect msvcrt

[libav-devel] [PATCH 2/2] swscale: try to use mmap only if available

2012-10-13 Thread Mans Rullgard
Some systems, e.g. Minix, have sys/mman.h defining MAP_ANONYMOUS without providing (working) mmap and friends. The mmx filter generation code checks only for MAP_ANONYMOUS, not for availability of mmap itself which leads to build errors on aforementioned systems. This changes the conditional

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

2012-10-13 Thread Diego Biurrun
--- configure |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 534c80d..dda752d 100755 --- a/configure +++ b/configure @@ -2819,7 +2819,6 @@ case $target_os in add_cppflags -U__STRICT_ANSI__ ;; linux) -

Re: [libav-devel] [PATCH 1/2] configure: check for mprotect

2012-10-13 Thread Martin Storsjö
On Sat, 13 Oct 2012, Mans Rullgard wrote: Signed-off-by: Mans Rullgard m...@mansr.com --- configure | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure b/configure index 7be62fe..700e99d 100755 --- a/configure +++ b/configure @@ -1198,6 +1198,7 @@ HAVE_LIST= mkstemp mm_empty

Re: [libav-devel] [PATCH 2/2] swscale: try to use mmap only if available

2012-10-13 Thread Martin Storsjö
On Sat, 13 Oct 2012, Mans Rullgard wrote: Some systems, e.g. Minix, have sys/mman.h defining MAP_ANONYMOUS without providing (working) mmap and friends. The mmx filter generation code checks only for MAP_ANONYMOUS, not for availability of mmap itself which leads to build errors on

[libav-devel] [PATCH 1/2] configure: Split out msvc as a separate target OS

2012-10-13 Thread Martin Storsjö
The name mingw32 as target OS is both misleading, and very little of the target OS specific settings actually match. Since the target OS default is set based on uname, the default (which on MSYS is set to mingw) is overridden by --toolchain=msvc. --- configure | 12 1 file

[libav-devel] [PATCH 2/2] Add support for building shared libraries with MSVC

2012-10-13 Thread Martin Storsjö
From: Ronald S. Bultje rsbul...@gmail.com This requires the makedef perl script by Derek, which probably will go into the c99-to-c89 repo. That scripts produces a .def file, listing the symbols to be exported, based on the gcc version scripts and the built object files. To properly load

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

2012-10-13 Thread Måns Rullgård
Diego Biurrun di...@biurrun.de writes: --- configure |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 534c80d..dda752d 100755 --- a/configure +++ b/configure @@ -2819,7 +2819,6 @@ case $target_os in add_cppflags

Re: [libav-devel] [PATCH 1/2] configure: Split out msvc as a separate target OS

2012-10-13 Thread Måns Rullgård
Martin Storsjö mar...@martin.st writes: The name mingw32 as target OS is both misleading, and very little of the target OS specific settings actually match. Since the target OS default is set based on uname, the default (which on MSYS is set to mingw) is overridden by --toolchain=msvc. ---

Re: [libav-devel] [PATCH 1/2] configure: Split out msvc as a separate target OS

2012-10-13 Thread Derek Buitenhuis
On 13/10/2012 1:29 PM, Måns Rullgård wrote: I don't really like calling the OS msvc. That is the compiler. How about windows? By that logic, shouldn't we also call mingw32 windows? - Derek ___ libav-devel mailing list libav-devel@libav.org

Re: [libav-devel] [PATCH 2/2] Add support for building shared libraries with MSVC

2012-10-13 Thread Diego Biurrun
On Sat, Oct 13, 2012 at 08:23:26PM +0300, Martin Storsjö wrote: From: Ronald S. Bultje rsbul...@gmail.com This requires the makedef perl script by Derek, which probably will go into the c99-to-c89 repo. That scripts produces a .def file, listing the symbols to be exported, based on the gcc

Re: [libav-devel] [PATCH 1/2] configure: Split out msvc as a separate target OS

2012-10-13 Thread Hendrik Leppkes
On Sat, Oct 13, 2012 at 7:46 PM, Derek Buitenhuis derek.buitenh...@gmail.com wrote: On 13/10/2012 1:29 PM, Måns Rullgård wrote: I don't really like calling the OS msvc. That is the compiler. How about windows? By that logic, shouldn't we also call mingw32 windows? Yeah, technically its

Re: [libav-devel] [PATCH 2/2] avutil: Give symbols used across libraries avpriv_ instead of ff_ prefixes

2012-10-13 Thread Diego Biurrun
On Sat, Oct 13, 2012 at 06:18:07PM +0100, Måns Rullgård wrote: Diego Biurrun di...@biurrun.de writes: --- libavcodec/bmpenc.c |2 +- libavcodec/rawdec.c |2 +- libavcodec/utils.c |2 +- libavutil/imgutils.c |4 ++-- libavutil/imgutils.h |2 +- 5 files

Re: [libav-devel] [PATCH 1/2] configure: Split out msvc as a separate target OS

2012-10-13 Thread Martin Storsjö
On Sat, 13 Oct 2012, Hendrik Leppkes wrote: On Sat, Oct 13, 2012 at 7:46 PM, Derek Buitenhuis derek.buitenh...@gmail.com wrote: On 13/10/2012 1:29 PM, Måns Rullgård wrote: I don't really like calling the OS msvc. That is the compiler. How about windows? By that logic, shouldn't we also

Re: [libav-devel] [PATCH 2/2] Add support for building shared libraries with MSVC

2012-10-13 Thread Måns Rullgård
Martin Storsjö mar...@martin.st writes: diff --git a/configure b/configure index 667089b..362f8d1 100755 --- a/configure +++ b/configure @@ -2794,6 +2794,29 @@ case $target_os in add_cppflags -U__STRICT_ANSI__ ;; msvc) +if enabled shared; then +

Re: [libav-devel] [PATCH 1/2] configure: Split out msvc as a separate target OS

2012-10-13 Thread Måns Rullgård
Hendrik Leppkes h.lepp...@gmail.com writes: On Sat, Oct 13, 2012 at 7:46 PM, Derek Buitenhuis derek.buitenh...@gmail.com wrote: On 13/10/2012 1:29 PM, Måns Rullgård wrote: I don't really like calling the OS msvc. That is the compiler. How about windows? By that logic, shouldn't we also

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

2012-10-13 Thread Diego Biurrun
On Sat, Oct 13, 2012 at 06:27:57PM +0100, Måns Rullgård wrote: Diego Biurrun di...@biurrun.de writes: --- a/configure +++ b/configure @@ -2819,7 +2819,6 @@ case $target_os in add_cppflags -U__STRICT_ANSI__ ;; linux) -add_cppflags

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

2012-10-13 Thread Måns Rullgård
Diego Biurrun di...@biurrun.de writes: On Sat, Oct 13, 2012 at 06:27:57PM +0100, Måns Rullgård wrote: Diego Biurrun di...@biurrun.de writes: --- a/configure +++ b/configure @@ -2819,7 +2819,6 @@ case $target_os in add_cppflags -U__STRICT_ANSI__ ;; linux) -

Re: [libav-devel] [PATCH 1/2] configure: Split out msvc as a separate target OS

2012-10-13 Thread Hendrik Leppkes
On Sat, Oct 13, 2012 at 8:14 PM, Måns Rullgård m...@mansr.com wrote: Hendrik Leppkes h.lepp...@gmail.com writes: On Sat, Oct 13, 2012 at 7:46 PM, Derek Buitenhuis derek.buitenh...@gmail.com wrote: On 13/10/2012 1:29 PM, Måns Rullgård wrote: I don't really like calling the OS msvc. That is

Re: [libav-devel] [PATCH 1/2] configure: Split out msvc as a separate target OS

2012-10-13 Thread Martin Storsjö
On Sat, 13 Oct 2012, Hendrik Leppkes wrote: On Sat, Oct 13, 2012 at 8:14 PM, Måns Rullgård m...@mansr.com wrote: Hendrik Leppkes h.lepp...@gmail.com writes: On Sat, Oct 13, 2012 at 7:46 PM, Derek Buitenhuis derek.buitenh...@gmail.com wrote: On 13/10/2012 1:29 PM, Måns Rullgård wrote: I

Re: [libav-devel] [PATCH 1/2] configure: Split out msvc as a separate target OS

2012-10-13 Thread Måns Rullgård
Martin Storsjö mar...@martin.st writes: On Sat, 13 Oct 2012, Hendrik Leppkes wrote: On Sat, Oct 13, 2012 at 8:14 PM, Måns Rullgård m...@mansr.com wrote: Hendrik Leppkes h.lepp...@gmail.com writes: On Sat, Oct 13, 2012 at 7:46 PM, Derek Buitenhuis derek.buitenh...@gmail.com wrote: On

Re: [libav-devel] [PATCH 2/2] Add support for building shared libraries with MSVC

2012-10-13 Thread Martin Storsjö
On Sat, 13 Oct 2012, Måns Rullgård wrote: Martin Storsjö mar...@martin.st writes: diff --git a/configure b/configure index 667089b..362f8d1 100755 --- a/configure +++ b/configure @@ -2794,6 +2794,29 @@ case $target_os in add_cppflags -U__STRICT_ANSI__ ;; msvc) +

Re: [libav-devel] [PATCH 2/2] Add support for building shared libraries with MSVC

2012-10-13 Thread Martin Storsjö
On Sat, 13 Oct 2012, Martin Storsjö wrote: diff --git a/library.mak b/library.mak index b365935..318fe86 100644 --- a/library.mak +++ b/library.mak @@ -19,6 +19,7 @@ $(SUBDIR)x86/%.o: $(SUBDIR)x86/%.asm $(DEPYASM) $(YASMFLAGS) -I $(D)/ -M -o $@ $ $(@:.o=.d) $(YASM) $(YASMFLAGS)

[libav-devel] [PATCH] nut: export codec_tag provided by rawvideo

2012-10-13 Thread Luca Barbato
Raw audio does not provide valid audio tags while rawvideo does. The fate refs have to be updated because it undoes the previous tag change. --- I'm thinking about adding specific nut tests and move to -f rawvideo for those. libavformat/nutenc.c | 2 +- tests/ref/lavfi/crop

Re: [libav-devel] [PATCH 2/2] Add support for building shared libraries with MSVC

2012-10-13 Thread Måns Rullgård
Martin Storsjö mar...@martin.st writes: On Sat, 13 Oct 2012, Martin Storsjö wrote: diff --git a/library.mak b/library.mak index b365935..318fe86 100644 --- a/library.mak +++ b/library.mak @@ -19,6 +19,7 @@ $(SUBDIR)x86/%.o: $(SUBDIR)x86/%.asm $(DEPYASM) $(YASMFLAGS) -I $(D)/ -M -o $@ $

Re: [libav-devel] [PATCH 2/2] Add support for building shared libraries with MSVC

2012-10-13 Thread Diego Biurrun
On Sat, Oct 13, 2012 at 09:50:59PM +0300, Martin Storsjö wrote: On Sat, 13 Oct 2012, Måns Rullgård wrote: Martin Storsjö mar...@martin.st writes: --- a/configure +++ b/configure @@ -2794,6 +2794,29 @@ case $target_os in add_cppflags -U__STRICT_ANSI__ ;; msvc) +

Re: [libav-devel] [PATCH 2/2] Add support for building shared libraries with MSVC

2012-10-13 Thread Hendrik Leppkes
On Sat, Oct 13, 2012 at 9:21 PM, Diego Biurrun di...@biurrun.de wrote: +#if CONFIG_SHARED defined(_MSC_VER) !defined(COMPILING_avcodec) This condition seems a bit too specific. There are other compilers. That might be good for consistency, even if mingw can do without it. So something

Re: [libav-devel] [PATCH 2/2] Add support for building shared libraries with MSVC

2012-10-13 Thread Derek Buitenhuis
On 13/10/2012 3:29 PM, Hendrik Leppkes wrote: ICL on windows mimics MSVCs behaviour rather strictly so it can be used as a more-or-less drop-in replacement, fwiw. With the exception of supporting C99, which I think is being addressed in Adam's patch anyway. - Derek

[libav-devel] [PATCH 1/2] configure: Split out msvc as a separate target OS

2012-10-13 Thread Martin Storsjö
The name mingw32 as target OS is both misleading, and very little of the target OS specific settings actually match. Since the target OS default is set based on uname, the default (which on MSYS is set to mingw) is overridden by --toolchain=msvc. --- configure | 12 1 file

[libav-devel] [PATCH 2/2] Add support for building shared libraries with MSVC

2012-10-13 Thread Martin Storsjö
From: Ronald S. Bultje rsbul...@gmail.com This requires the makedef perl script by Derek, from the c89-to-c99 repo. That scripts produces a .def file, listing the symbols to be exported, based on the gcc version scripts and the built object files. To properly load non-function symbols from DLL

Re: [libav-devel] [PATCH 1/2] configure: Split out msvc as a separate target OS

2012-10-13 Thread Diego Biurrun
On Sat, Oct 13, 2012 at 10:43:18PM +0300, Martin Storsjö wrote: The name mingw32 as target OS is both misleading, and very little of the target OS specific settings actually match. Since the target OS default is set based on uname, the default (which on MSYS is set to mingw) is overridden by

Re: [libav-devel] [PATCH 2/2] Add support for building shared libraries with MSVC

2012-10-13 Thread Diego Biurrun
On Sat, Oct 13, 2012 at 10:43:19PM +0300, Martin Storsjö wrote: --- configure | 17 + libavcodec/ac3tab.h|3 ++- libavcodec/dca.h |3 ++- libavcodec/internal.h |7 +++ libavcodec/mjpeg.h | 15 ---

Re: [libav-devel] [PATCH 1/2] configure: Split out msvc as a separate target OS

2012-10-13 Thread Hendrik Leppkes
On Sat, Oct 13, 2012 at 9:43 PM, Martin Storsjö mar...@martin.st wrote: The name mingw32 as target OS is both misleading, and very little of the target OS specific settings actually match. Since the target OS default is set based on uname, the default (which on MSYS is set to mingw) is

Re: [libav-devel] [PATCH 1/2] configure: Split out msvc as a separate target OS

2012-10-13 Thread Martin Storsjö
On Sat, 13 Oct 2012, Hendrik Leppkes wrote: On Sat, Oct 13, 2012 at 9:43 PM, Martin Storsjö mar...@martin.st wrote: The name mingw32 as target OS is both misleading, and very little of the target OS specific settings actually match. Since the target OS default is set based on uname, the

Re: [libav-devel] [PATCH 1/2] configure: Split out msvc as a separate target OS

2012-10-13 Thread Måns Rullgård
Martin Storsjö mar...@martin.st writes: The name mingw32 as target OS is both misleading, and very little of the target OS specific settings actually match. Since the target OS default is set based on uname, the default (which on MSYS is set to mingw) is overridden by --toolchain=msvc. ---

Re: [libav-devel] [PATCH 2/2] Add support for building shared libraries with MSVC

2012-10-13 Thread Dave Yeo
On 10/13/12 10:23 am, Martin Storsjö wrote: This requires the makedef perl script by Derek, which probably will go into the c99-to-c89 repo. That scripts produces a .def file, listing the symbols to be exported, based on the gcc version scripts and the built object files. Where is the makedef

Re: [libav-devel] [PATCH 2/2] Add support for building shared libraries with MSVC

2012-10-13 Thread Martin Storsjö
On Sat, 13 Oct 2012, Dave Yeo wrote: On 10/13/12 10:23 am, Martin Storsjö wrote: This requires the makedef perl script by Derek, which probably will go into the c99-to-c89 repo. That scripts produces a .def file, listing the symbols to be exported, based on the gcc version scripts and the

Re: [libav-devel] [PATCH 2/2] Add support for building shared libraries with MSVC

2012-10-13 Thread Måns Rullgård
Martin Storsjö mar...@martin.st writes: diff --git a/configure b/configure index b30d69b..b70b1ec 100755 --- a/configure +++ b/configure @@ -2794,6 +2794,20 @@ case $target_os in add_cppflags -U__STRICT_ANSI__ ;; win32|win64) +# Link to the import library

Re: [libav-devel] [PATCH 2/2] Add support for building shared libraries with MSVC

2012-10-13 Thread Martin Storsjö
On Sat, 13 Oct 2012, Måns Rullgård wrote: Martin Storsjö mar...@martin.st writes: @@ -2930,6 +2944,9 @@ build the shared libraries as well. To only build the shared libraries specify EOF exit 1; fi +if enabled_all msvc static shared; then +die Cannot build shared and static

Re: [libav-devel] [PATCH 2/2] Add support for building shared libraries with MSVC

2012-10-13 Thread Måns Rullgård
Martin Storsjö mar...@martin.st writes: On Sat, 13 Oct 2012, Måns Rullgård wrote: Martin Storsjö mar...@martin.st writes: @@ -2930,6 +2944,9 @@ build the shared libraries as well. To only build the shared libraries specify EOF exit 1; fi +if enabled_all msvc static shared; then

Re: [libav-devel] [PATCH 2/2] H.264: Convert 8-bit qpel inlined assembly to yasm

2012-10-13 Thread Ronald S. Bultje
Hi, On Sat, Oct 13, 2012 at 9:05 AM, Diego Biurrun di...@biurrun.de wrote: On Sat, Oct 13, 2012 at 10:04:50AM -0500, Daniel Kang wrote: +%macro op_avgh 3 +movh %3, %2 +pavgb %1, %3 +movh %2, %1 +%endmacro + +%macro op_avg 3 +pavgb %1, %2 +mova %2, %1

[libav-devel] [PATCH] build: support asan and tsan toolchain shortcuts

2012-10-13 Thread Luca Barbato
--- configure | 10 ++ 1 file changed, 10 insertions(+) diff --git a/configure b/configure index 26cd7ea..b4a1f96 100755 --- a/configure +++ b/configure @@ -2053,6 +2053,16 @@ case $toolchain in nm_default=dumpbin -symbols ar_default=lib ;; +asan) +