Re: [libav-devel] [PATCH 2/2] avplay: support mid-stream sample rate changes

2012-10-12 Thread Anton Khirnov
On Mon, 8 Oct 2012 00:04:22 -0400, Justin Ruggles justin.rugg...@gmail.com wrote: Resample to the rate that was configured in SDL. --- avplay.c | 35 +-- 1 files changed, 21 insertions(+), 14 deletions(-) diff --git a/avplay.c b/avplay.c index

Re: [libav-devel] [PATCH] Move av_reverse table to libavcodec; it is only used there.

2012-10-12 Thread Martin Storsjö
On Thu, 11 Oct 2012, Diego Biurrun wrote: --- Now w/o accidentally renaming the copy in libavutil... libavcodec/asvdec.c |7 --- libavcodec/asvenc.c |7 --- libavcodec/bitstream.c |9 + libavcodec/indeo2.c |6 -- libavcodec/ivi_common.c |7

[libav-devel] [PATCH] rtspdec: Set the default port for listen mode, if none is specified

2012-10-12 Thread Martin Storsjö
--- libavformat/rtspdec.c |4 1 file changed, 4 insertions(+) diff --git a/libavformat/rtspdec.c b/libavformat/rtspdec.c index 7476c45..c0797ad 100644 --- a/libavformat/rtspdec.c +++ b/libavformat/rtspdec.c @@ -621,6 +621,10 @@ static int rtsp_listen(AVFormatContext *s) /*

[libav-devel] [PATCH] tscc2: Fix an out of array access

2012-10-12 Thread Martin Storsjö
From: Michael Niedermayer michae...@gmx.at --- libavcodec/tscc2.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/tscc2.c b/libavcodec/tscc2.c index 1b2a3a4..3628713 100644 --- a/libavcodec/tscc2.c +++ b/libavcodec/tscc2.c @@ -173,7 +173,7 @@ static int

Re: [libav-devel] [PATCH] tscc2: Fix an out of array access

2012-10-12 Thread Kostya Shishkov
On Fri, Oct 12, 2012 at 11:19:24AM +0300, Martin Storsjö wrote: From: Michael Niedermayer michae...@gmx.at --- libavcodec/tscc2.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/tscc2.c b/libavcodec/tscc2.c index 1b2a3a4..3628713 100644 ---

Re: [libav-devel] [PATCH] mov: Do not apply dts shift from edit lists coming from data tracks.

2012-10-12 Thread Luca Barbato
On 10/12/2012 06:52 AM, Alex Converse wrote: Some files in the wild have time code tracks with very negative initial offsets. --- libavformat/mov.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) I guess ok, how that data track should be managed though? lu

Re: [libav-devel] [PATCH 1/2] rtspdec: Fix use of uninitialized byte

2012-10-12 Thread Luca Barbato
On 10/12/2012 10:07 AM, Martin Storsjö wrote: From: Michael Niedermayer michae...@gmx.at ffurl_read_complete can return 0 as well as negative error codes. --- libavformat/rtspdec.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/rtspdec.c

Re: [libav-devel] [PATCH 1/2] rtspdec: Fix use of uninitialized byte

2012-10-12 Thread Luca Barbato
On 10/12/2012 11:20 AM, Luca Barbato wrote: I wonder why 0 should appear here, we are asking 1, we should get an eagain. Should but does not, patch ok I guess. lu ___ libav-devel mailing list libav-devel@libav.org

Re: [libav-devel] [PATCH] rtspdec: Set the default port for listen mode, if none is specified

2012-10-12 Thread Luca Barbato
On 10/12/2012 10:10 AM, Martin Storsjö wrote: --- libavformat/rtspdec.c |4 1 file changed, 4 insertions(+) OK. ___ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel

Re: [libav-devel] [PATCH 1/2] rtspdec: Fix use of uninitialized byte

2012-10-12 Thread Martin Storsjö
On Fri, 12 Oct 2012, Luca Barbato wrote: On 10/12/2012 11:20 AM, Luca Barbato wrote: I wonder why 0 should appear here, we are asking 1, we should get an eagain. Should but does not, patch ok I guess. Yeah - you don't get eagain for blocking reads. For the normal ffurl_read, you can get

Re: [libav-devel] [PATCH] mov: Do not apply dts shift from edit lists coming from data tracks.

2012-10-12 Thread Måns Rullgård
Alex Converse alex.conve...@gmail.com writes: Some files in the wild have time code tracks with very negative initial offsets. Do you have a sample? -- Måns Rullgård m...@mansr.com ___ libav-devel mailing list libav-devel@libav.org

Re: [libav-devel] [PATCH 2/2] rtmpproto: Fix an out of array write

2012-10-12 Thread Luca Barbato
On 10/12/2012 10:07 AM, Martin Storsjö wrote: From: Michael Niedermayer michae...@gmx.at Ok. ___ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel

Re: [libav-devel] [PATCH] nut: support high depth pcm codecs

2012-10-12 Thread Janne Grunau
On 2012-10-12 02:15:33 +0200, Luca Barbato wrote: Give priority to the native tags when encoding. Update fate refs due the change of tags in use. --- Made sure fate remains green. libavformat/nut.c| 20 +++ libavformat/nut.h| 1 +

Re: [libav-devel] [PATCH] avutil: add yuva422p and yuva444p formats

2012-10-12 Thread Janne Grunau
On 2012-10-12 01:31:02 +0200, Luca Barbato wrote: On 10/12/2012 01:24 AM, Janne Grunau wrote: On 2012-10-12 01:08:10 +0200, Luca Barbato wrote: --- diff --git a/libswscale/utils.c b/libswscale/utils.c index fcdd04a..8d04e27 100644 --- a/libswscale/utils.c +++ b/libswscale/utils.c

Re: [libav-devel] FFv1.3 support

2012-10-12 Thread Peter B.
On 10/12/2012 12:24 AM, Luca Barbato wrote: On 10/05/2012 05:31 PM, Peter B. wrote: On 10/01/2012 05:30 PM, Luca Barbato wrote: I'm rebasing old patches supporting some pixel formats and possibly I'll have a look at ffv1 to see what really changed. In order to avoid misunderstandings, I

Re: [libav-devel] FFv1.3 support

2012-10-12 Thread Luca Barbato
On 10/12/2012 03:14 PM, Peter B. wrote: On 10/12/2012 12:24 AM, Luca Barbato wrote: On 10/05/2012 05:31 PM, Peter B. wrote: On 10/01/2012 05:30 PM, Luca Barbato wrote: I'm rebasing old patches supporting some pixel formats and possibly I'll have a look at ffv1 to see what really changed. In

[libav-devel] Fix for FFMPEG vp8dec loopfilter delta values reset at keyframes

2012-10-12 Thread Sami Pietilä
Hi all, while testing a VP8 encoder I found a mismatch between FFMPEG and libvpx VP8 decoders. The reason for this mismatch is that FFMPEG doesn't reset loopfilter delta values at keyframes. Patch that fixes the issue is below. I've verified that the output of ffmpeg after this patch matches

[libav-devel] [PATCH] Move av_reverse table to libavcodec; it is only used there.

2012-10-12 Thread Diego Biurrun
--- Now with attribute_deprecated and w/o stupid copy and paste bug. libavcodec/asvdec.c |7 --- libavcodec/asvenc.c |7 --- libavcodec/bitstream.c |9 + libavcodec/indeo2.c |6 -- libavcodec/ivi_common.c |7 --- libavcodec/mathops.h|

Re: [libav-devel] Fix for FFMPEG vp8dec loopfilter delta values reset at keyframes

2012-10-12 Thread Luca Barbato
On 10/12/2012 12:42 PM, Sami Pietilä wrote: Hi all, while testing a VP8 encoder I found a mismatch between FFMPEG and libvpx VP8 decoders. The reason for this mismatch is that FFMPEG doesn't reset loopfilter delta values at keyframes. Patch that fixes the issue is below. I've verified that

[libav-devel] Nut updates

2012-10-12 Thread Luca Barbato
This time I split the initial patch to ease re-review as Janne asked. ___ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel

[libav-devel] [PATCH 1/5] nut: prioritize native tags

2012-10-12 Thread Luca Barbato
Use native tags instead of avi ones, simplifies a lot raw video codecs handling. --- libavformat/nutenc.c | 20 --- tests/ref/lavfi/crop | 2 +- tests/ref/lavfi/crop_scale | 2 +- tests/ref/lavfi/crop_scale_vflip | 2 +- tests/ref/lavfi/crop_vflip |

[libav-devel] [PATCH 2/5] nut: support higher depth pcm codecs

2012-10-12 Thread Luca Barbato
--- libavformat/nut.c| 20 libavformat/nut.h| 1 + libavformat/nutdec.c | 9 +++-- libavformat/nutenc.c | 2 +- 4 files changed, 29 insertions(+), 3 deletions(-) diff --git a/libavformat/nut.c b/libavformat/nut.c index 6a68e28..ea6ff23 100644 ---

[libav-devel] [PATCH 3/5] nut: support float PCM

2012-10-12 Thread Luca Barbato
--- libavformat/nut.c | 4 1 file changed, 4 insertions(+) diff --git a/libavformat/nut.c b/libavformat/nut.c index ea6ff23..d686fba 100644 --- a/libavformat/nut.c +++ b/libavformat/nut.c @@ -92,6 +92,10 @@ const AVCodecTag ff_nut_video_tags[] = { const AVCodecTag ff_nut_audio_tags[] = {

[libav-devel] [PATCH 4/5] nut: pcm planar support

2012-10-12 Thread Luca Barbato
--- doc/nut.texi | 2 +- libavformat/nut.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/nut.texi b/doc/nut.texi index dafbb39..1c23934 100644 --- a/doc/nut.texi +++ b/doc/nut.texi @@ -50,7 +50,7 @@ to be read big-endian. @end multitable type is S for signed

[libav-devel] [PATCH 5/5] nut: cosmetic

2012-10-12 Thread Luca Barbato
Align the tags in ff_nut_audio_tags. --- libavformat/nut.c | 46 +++--- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/libavformat/nut.c b/libavformat/nut.c index d56ad51..89ebbd0 100644 --- a/libavformat/nut.c +++ b/libavformat/nut.c @@

Re: [libav-devel] Fix for FFMPEG vp8dec loopfilter delta values reset at keyframes

2012-10-12 Thread Ronald S. Bultje
Hi, On Fri, Oct 12, 2012 at 7:12 AM, Luca Barbato lu_z...@gentoo.org wrote: On 10/12/2012 12:42 PM, Sami Pietilä wrote: Hi all, while testing a VP8 encoder I found a mismatch between FFMPEG and libvpx VP8 decoders. The reason for this mismatch is that FFMPEG doesn't reset loopfilter delta

Re: [libav-devel] [PATCH 1/5] nut: prioritize native tags

2012-10-12 Thread Janne Grunau
On 2012-10-12 16:14:39 +0200, Luca Barbato wrote: Use native tags instead of avi ones, simplifies a lot raw video codecs handling. --- libavformat/nutenc.c | 20 --- tests/ref/lavfi/crop | 2 +- tests/ref/lavfi/crop_scale | 2 +-

[libav-devel] [PATCH] avfilter: call x86 init functions under if (ARCH_X86), not if (HAVE_MMX)

2012-10-12 Thread Diego Biurrun
--- libavfilter/vf_gradfun.c |2 +- libavfilter/vf_yadif.c |2 +- libavfilter/x86/Makefile |5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/libavfilter/vf_gradfun.c b/libavfilter/vf_gradfun.c index 7fbcf1a..2ee8b5d 100644 --- a/libavfilter/vf_gradfun.c +++

Re: [libav-devel] Fix for FFMPEG vp8dec loopfilter delta values reset at keyframes

2012-10-12 Thread Luca Barbato
On 10/12/2012 04:15 PM, Ronald S. Bultje wrote: If you can point me where in the specification it is stated I'd like to point it in the commit message. It's only natural for all codec state to be reset in a keyframe. It is supposed to be a re-entry point where all values are reset to

Re: [libav-devel] [PATCH] Move av_reverse table to libavcodec; it is only used there.

2012-10-12 Thread Luca Barbato
On 10/12/2012 04:04 PM, Diego Biurrun wrote: Please format the commit message as avcodec: move av_reverse table in libavcodec It is only used there. lu ___ libav-devel mailing list libav-devel@libav.org

Re: [libav-devel] Fix for FFMPEG vp8dec loopfilter delta values reset at keyframes

2012-10-12 Thread Ronald Bultje
Hi Sami, On Fri, Oct 12, 2012 at 3:42 AM, Sami Pietilä samipiet...@google.com wrote: Hi all, while testing a VP8 encoder I found a mismatch between FFMPEG and libvpx VP8 decoders. The reason for this mismatch is that FFMPEG doesn't reset loopfilter delta values at keyframes. Patch that

Re: [libav-devel] Fix for FFMPEG vp8dec loopfilter delta values reset at keyframes

2012-10-12 Thread Ronald S. Bultje
Hi, On Fri, Oct 12, 2012 at 7:18 AM, Luca Barbato lu_z...@gentoo.org wrote: On 10/12/2012 04:15 PM, Ronald S. Bultje wrote: If you can point me where in the specification it is stated I'd like to point it in the commit message. It's only natural for all codec state to be reset in a keyframe.

Re: [libav-devel] [PATCH] x86: call remaining init functions under if (ARCH_X86), not if (HAVE_MMX)

2012-10-12 Thread Diego Biurrun
On Thu, Oct 11, 2012 at 01:45:54AM +0200, Janne Grunau wrote: On 2012-10-10 23:47:27 +0200, Diego Biurrun wrote: --- a/libavcodec/x86/Makefile +++ b/libavcodec/x86/Makefile @@ -1,9 +1,17 @@ -OBJS += x86/fmtconvert_init.o +OBJS

Re: [libav-devel] [PATCH 2/5] nut: support higher depth pcm codecs

2012-10-12 Thread Janne Grunau
On 2012-10-12 16:14:40 +0200, Luca Barbato wrote: --- libavformat/nut.c| 20 libavformat/nut.h| 1 + libavformat/nutdec.c | 9 +++-- libavformat/nutenc.c | 2 +- 4 files changed, 29 insertions(+), 3 deletions(-) diff --git a/libavformat/nut.c

Re: [libav-devel] [PATCH] avutil: Duplicate ff_log2_tab instead of sharing it across libs

2012-10-12 Thread Martin Storsjö
On Wed, 10 Oct 2012, Diego Biurrun wrote: The table is so small that the space gain is not worth the performance overhead of cross-library access. --- Now dropping an instance into libavformat as well, which also accesses the table directly. libavcodec/Makefile |1 +

Re: [libav-devel] [PATCH 3/5] nut: support float PCM

2012-10-12 Thread Janne Grunau
On 2012-10-12 16:14:41 +0200, Luca Barbato wrote: --- libavformat/nut.c | 4 1 file changed, 4 insertions(+) diff --git a/libavformat/nut.c b/libavformat/nut.c index ea6ff23..d686fba 100644 --- a/libavformat/nut.c +++ b/libavformat/nut.c @@ -92,6 +92,10 @@ const AVCodecTag

Re: [libav-devel] [PATCH] Move av_reverse table to libavcodec; it is only used there.

2012-10-12 Thread Martin Storsjö
On Fri, 12 Oct 2012, Diego Biurrun wrote: --- Now with attribute_deprecated and w/o stupid copy and paste bug. libavcodec/asvdec.c |7 --- libavcodec/asvenc.c |7 --- libavcodec/bitstream.c |9 + libavcodec/indeo2.c |6 -- libavcodec/ivi_common.c |

Re: [libav-devel] [PATCH] avfilter: call x86 init functions under if (ARCH_X86), not if (HAVE_MMX)

2012-10-12 Thread Janne Grunau
On 2012-10-12 16:18:13 +0200, Diego Biurrun wrote: --- libavfilter/vf_gradfun.c |2 +- libavfilter/vf_yadif.c |2 +- libavfilter/x86/Makefile |5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/libavfilter/vf_gradfun.c b/libavfilter/vf_gradfun.c index

Re: [libav-devel] [PATCH] Move av_reverse table to libavcodec; it is only used there.

2012-10-12 Thread Måns Rullgård
Luca Barbato lu_z...@gentoo.org writes: On 10/12/2012 04:04 PM, Diego Biurrun wrote: Please format the commit message as avcodec: move av_reverse table in libavcodec Move _to_. -- Måns Rullgård m...@mansr.com ___ libav-devel mailing list

Re: [libav-devel] [PATCH] x86: call remaining init functions under if (ARCH_X86), not if (HAVE_MMX)

2012-10-12 Thread Janne Grunau
On 2012-10-12 16:23:54 +0200, Diego Biurrun wrote: On Thu, Oct 11, 2012 at 01:45:54AM +0200, Janne Grunau wrote: On 2012-10-10 23:47:27 +0200, Diego Biurrun wrote: --- a/libavcodec/x86/Makefile +++ b/libavcodec/x86/Makefile @@ -1,9 +1,17 @@ -OBJS +=

Re: [libav-devel] [PATCH 2/5] nut: support higher depth pcm codecs

2012-10-12 Thread Luca Barbato
On 10/12/2012 04:22 PM, Janne Grunau wrote: On 2012-10-12 16:14:40 +0200, Luca Barbato wrote: --- libavformat/nut.c| 20 libavformat/nut.h| 1 + libavformat/nutdec.c | 9 +++-- libavformat/nutenc.c | 2 +- 4 files changed, 29 insertions(+), 3

Re: [libav-devel] [PATCH 3/3] nut: pcm planar support

2012-10-12 Thread Justin Ruggles
On 10/11/2012 07:01 PM, Luca Barbato wrote: --- doc/nut.texi | 2 +- libavformat/nut.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/nut.texi b/doc/nut.texi index dafbb39..1c23934 100644 --- a/doc/nut.texi +++ b/doc/nut.texi @@ -50,7 +50,7 @@ to be read

[libav-devel] [PATCH 2/2] nut: support high depth pcm codecs

2012-10-12 Thread Luca Barbato
--- libavformat/nut.c| 22 +- libavformat/nut.h| 1 + libavformat/nutdec.c | 7 ++- 3 files changed, 28 insertions(+), 2 deletions(-) diff --git a/libavformat/nut.c b/libavformat/nut.c index b666bff..7f64fea 100644 --- a/libavformat/nut.c +++ b/libavformat/nut.c

[libav-devel] [PATCH 1/2] nut: prioritize native tags

2012-10-12 Thread Luca Barbato
Use native tags instead of avi ones, simplifies a lot raw video codecs handling. --- libavformat/nut.c| 6 +++ libavformat/nut.h| 2 + libavformat/nutdec.c | 7 +-- libavformat/nutenc.c | 15 +++--- tests/ref/lavfi/crop |

Re: [libav-devel] [PATCH 3/3] nut: pcm planar support

2012-10-12 Thread Luca Barbato
On 10/12/2012 05:22 PM, Justin Ruggles wrote: will not as expected work in NUT. Which planar codecs should we support? just S16? ___ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel

Re: [libav-devel] [PATCH 3/3] nut: pcm planar support

2012-10-12 Thread Justin Ruggles
On 10/12/2012 11:45 AM, Luca Barbato wrote: On 10/12/2012 05:22 PM, Justin Ruggles wrote: will not as expected work in NUT. Which planar codecs should we support? just S16? Sure, S16LE_PLANAR looks like it would work fine. -Justin ___ libav-devel

Re: [libav-devel] [PATCH 3/3] nut: pcm planar support

2012-10-12 Thread Luca Barbato
On 10/12/2012 05:52 PM, Justin Ruggles wrote: On 10/12/2012 11:45 AM, Luca Barbato wrote: On 10/12/2012 05:22 PM, Justin Ruggles wrote: will not as expected work in NUT. Which planar codecs should we support? just S16? Sure, S16LE_PLANAR looks like it would work fine. If the remaining

[libav-devel] Nut improvements v2

2012-10-12 Thread Luca Barbato
Audio changes squashed in a single one. ___ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel

[libav-devel] [PATCH 1/2] nut: prioritize native tags

2012-10-12 Thread Luca Barbato
Use native tags instead of avi ones, simplifies a lot raw video codecs handling. --- libavformat/nut.c| 6 +++ libavformat/nut.h| 2 + libavformat/nutdec.c | 7 +-- libavformat/nutenc.c | 15 +++--- tests/ref/lavfi/crop |

[libav-devel] [PATCH 2/2] nut: support pcm codecs not mapped in avi

2012-10-12 Thread Luca Barbato
The native tags will be used all when available. --- doc/nut.texi | 2 +- libavformat/nut.c| 27 ++- libavformat/nut.h| 1 + libavformat/nutdec.c | 7 ++- 4 files changed, 34 insertions(+), 3 deletions(-) diff --git a/doc/nut.texi b/doc/nut.texi

[libav-devel] [PATCH] Use proper return values in case of missing features

2012-10-12 Thread Diego Biurrun
--- Alignment in alsdec.c changed as requested by Kostya. libavcodec/aac_adtstoasc_bsf.c |4 ++-- libavcodec/aacdec.c|8 libavcodec/ac3dec.c|2 +- libavcodec/alsdec.c|6 +++--- libavcodec/amrnbdec.c |2 +-

Re: [libav-devel] [PATCH] Remove libmpeg2 #define remnants

2012-10-12 Thread Diego Biurrun
On Thu, Oct 11, 2012 at 05:29:39PM +0200, Diego Biurrun wrote: --- libavcodec/avcodec.h |2 ++ libavcodec/version.h |3 +++ 2 files changed, 5 insertions(+), 0 deletions(-) OKed by Kostya on IRC. Diego ___ libav-devel mailing list

Re: [libav-devel] [PATCH] De-doxygenize some top-level files

2012-10-12 Thread Diego Biurrun
On Thu, Sep 06, 2012 at 10:09:04PM +0200, Diego Biurrun wrote: The Doxygen comments in those files are of purely file-internal interest. --- parse_meta_type() in avconv_opt.c still has Doxygen comments that are actually somewhat useful, suggestions welcome. avconv.c| 17

Re: [libav-devel] [PATCH 3/4] rangecoder: KR formatting cosmetics

2012-10-12 Thread Diego Biurrun
On Fri, Oct 05, 2012 at 07:19:56PM +0200, Diego Biurrun wrote: --- libavcodec/rangecoder.c | 114 +++--- libavcodec/rangecoder.h | 92 -- 2 files changed, 106 insertions(+), 100 deletions(-) OKed by Kostya on IRC.

Re: [libav-devel] [PATCH 4/4] rangecoder-test: Set error message log level to error, instead of debug

2012-10-12 Thread Diego Biurrun
On Fri, Oct 05, 2012 at 07:19:57PM +0200, Diego Biurrun wrote: --- libavcodec/rangecoder.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) OKed by Kostya on IRC. Diego ___ libav-devel mailing list libav-devel@libav.org

Re: [libav-devel] [PATCH] Use proper return values in case of missing features

2012-10-12 Thread Diego Biurrun
On Fri, Oct 12, 2012 at 08:29:15PM +0200, Diego Biurrun wrote: --- Alignment in alsdec.c changed as requested by Kostya. libavcodec/aac_adtstoasc_bsf.c |4 ++-- libavcodec/aacdec.c|8 libavcodec/ac3dec.c|2 +- libavcodec/alsdec.c|

Re: [libav-devel] [PATCH 3/3] fate: add avstring FATE test

2012-10-12 Thread Diego Biurrun
On Fri, Oct 05, 2012 at 09:08:41PM +0200, Diego Biurrun wrote: --- tests/fate/libavutil.mak |4 tests/ref/fate/avstring | 27 +++ 2 files changed, 31 insertions(+), 0 deletions(-) create mode 100644 tests/ref/fate/avstring OKed by Kostya on IRC. Diego

[libav-devel] [PATCH] rangecoder-test: Return in case of an error

2012-10-12 Thread Diego Biurrun
--- libavcodec/rangecoder.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/libavcodec/rangecoder.c b/libavcodec/rangecoder.c index b9095ba..fcadfe4 100644 --- a/libavcodec/rangecoder.c +++ b/libavcodec/rangecoder.c @@ -146,8 +146,10 @@ int main(void)

Re: [libav-devel] [PATCH 2/2] nut: support pcm codecs not mapped in avi

2012-10-12 Thread Justin Ruggles
On 10/12/2012 12:27 PM, Luca Barbato wrote: The native tags will be used all when available. --- doc/nut.texi | 2 +- libavformat/nut.c| 27 ++- libavformat/nut.h| 1 + libavformat/nutdec.c | 7 ++- 4 files changed, 34 insertions(+), 3

[libav-devel] [PATCH] lavr: handle clipping in the float to s32 conversion

2012-10-12 Thread Justin Ruggles
We cannot clip to INT_MAX because that value cannot be exactly represented by a float value and ends up overflowing during conversion anyway. We need to use a slightly smaller float value, which ends up with slightly inaccurate results for samples which clip or nearly clip, but it is close enough.

Re: [libav-devel] [PATCH] lavr: handle clipping in the float to s32 conversion

2012-10-12 Thread Luca Barbato
On 10/12/2012 09:46 PM, Justin Ruggles wrote: We cannot clip to INT_MAX because that value cannot be exactly represented by a float value and ends up overflowing during conversion anyway. We need to use a slightly smaller float value, which ends up with slightly inaccurate results for samples

[libav-devel] [PATCH] avstring-test: fix memory leaks

2012-10-12 Thread Mans Rullgard
Signed-off-by: Mans Rullgard m...@mansr.com --- libavutil/avstring.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libavutil/avstring.c b/libavutil/avstring.c index 9b88c0b..6b3a65c 100644 --- a/libavutil/avstring.c +++ b/libavutil/avstring.c @@ -197,10 +197,12 @@ int

Re: [libav-devel] [PATCH] avstring-test: fix memory leaks

2012-10-12 Thread Luca Barbato
On 10/12/2012 11:28 PM, Mans Rullgard wrote: Signed-off-by: Mans Rullgard m...@mansr.com --- libavutil/avstring.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) Ok. ___ libav-devel mailing list libav-devel@libav.org

[libav-devel] [PATCH] eval-test: make table static const

2012-10-12 Thread Mans Rullgard
Signed-off-by: Mans Rullgard m...@mansr.com --- libavutil/eval.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavutil/eval.c b/libavutil/eval.c index 9d17930..7a28dbe 100644 --- a/libavutil/eval.c +++ b/libavutil/eval.c @@ -564,7 +564,8 @@ int main(int argc, char

Re: [libav-devel] [PATCH] eval-test: make table static const

2012-10-12 Thread Luca Barbato
On 10/13/2012 12:50 AM, Mans Rullgard wrote: Signed-off-by: Mans Rullgard m...@mansr.com --- libavutil/eval.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) Ok. ___ libav-devel mailing list libav-devel@libav.org

Re: [libav-devel] [PATCH 1/5] nut: prioritize native tags

2012-10-12 Thread Luca Barbato
On 10/12/2012 04:15 PM, Janne Grunau wrote: On 2012-10-12 16:14:39 +0200, Luca Barbato wrote: Use native tags instead of avi ones, simplifies a lot raw video codecs handling. --- libavformat/nutenc.c | 20 --- tests/ref/lavfi/crop | 2 +-

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

2012-10-12 Thread Mans Rullgard
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(){ -mfpu=neon) echo --float_support=vfpv3 --neon ;;

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

2012-10-12 Thread Mans Rullgard
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(+) create mode 100644 compat/tms470/math.h

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

2012-10-12 Thread Mans Rullgard
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 file changed, 9 insertions(+), 3

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

2012-10-12 Thread Mans Rullgard
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 implementation shall also permit applications

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

2012-10-12 Thread Mans Rullgard
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 index bc3a218..b076945 100755 ---

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

2012-10-12 Thread Mans Rullgard
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 +2877,8 @@ case $target_os in

Re: [libav-devel] [PATCH] vc1: Use codec ID from AVCodecContext while parsing frame header

2012-10-12 Thread Mashiat Sarker Shakkhar
On 10/11/2012 1:23 PM, Kostya Shishkov wrote: On Thu, Oct 11, 2012 at 01:13:56PM -0400, Mashiat Sarker Shakkhar wrote: This fixes a segfault with samples that I have (both of them MPEG-TS). Looks like avctx-codec is not being set during parsing. --- libavcodec/vc1.c |2 +- 1 file