[libav-devel] [PATCH 2/2] configure: Remove the explicit disabling of ffserver

2011-03-23 Thread Martin Storsjö
It is automatically disabled on both mingw and dos due to the lack of fork. --- configure |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/configure b/configure index f7c9ff7..776eccc 100755 --- a/configure +++ b/configure @@ -2410,7 +2410,6 @@ case $target_os in

[libav-devel] [PATCH 2/3] applehttp: Restructure the demuxer to use a custom AVIOContext

2011-03-30 Thread Martin Storsjö
This avoids issues where EOF at the end of the segment is given the variant demuxer. Now the demuxers only see one single data stream (as when using the applehttp protocol handler). --- libavformat/applehttp.c | 335 --- 1 files changed, 169

[libav-devel] [PATCH] rtsp: Use GET_PARAMETER for keep-alive for generic RTSP servers

2011-03-30 Thread Martin Storsjö
According to the RFC, GET_PARAMETER should be used for this, and according to a report from Tim Ouellette, OPTIONS doesn't work for keeping the connection alive for some servers. Also, live555 uses GET_PARAMETER for this purpose. --- libavformat/rtspdec.c |2 +- 1 files changed, 1

Re: [libav-devel] [PATCH] configure: Initial support for --target-os=symbian

2011-03-30 Thread Martin Storsjö
On Wed, 30 Mar 2011, Måns Rullgård wrote: Martin Storsjö mar...@martin.st writes: On Wed, 23 Mar 2011, Måns Rullgård wrote: Martin Storsjö mar...@martin.st writes: On Wed, 23 Mar 2011, Måns Rullgård wrote: Martin Storsjö mar...@martin.st writes: +enable

Re: [libav-devel] [PATCH] configure: Initial support for --target-os=symbian

2011-03-30 Thread Martin Storsjö
On Wed, 30 Mar 2011, Måns Rullgård wrote: Martin Storsjö mar...@martin.st writes: On Wed, 30 Mar 2011, Måns Rullgård wrote: Martin Storsjö mar...@martin.st writes: On Wed, 23 Mar 2011, Måns Rullgård wrote: Martin Storsjö mar...@martin.st writes: On Wed, 23 Mar 2011

[libav-devel] [PATCH] configure: Initial support for --target-os=symbian

2011-03-30 Thread Martin Storsjö
--- configure |9 - 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/configure b/configure index fab4f2b..5e76a28 100755 --- a/configure +++ b/configure @@ -1822,7 +1822,7 @@ set_default host_cc exesuf() { case $1 in -

[libav-devel] [PATCH 1/3] applehttp: Move finished and target_duration to the variant struct

2011-03-31 Thread Martin Storsjö
This is a preparation for a restructuring of the demuxer, to minimize the later diff. --- libavformat/applehttp.c | 40 +--- 1 files changed, 25 insertions(+), 15 deletions(-) diff --git a/libavformat/applehttp.c b/libavformat/applehttp.c index

[libav-devel] [PATCH 2/3] applehttp: Restructure the demuxer to use a custom AVIOContext

2011-03-31 Thread Martin Storsjö
This avoids issues where EOF at the end of the segment is given the variant demuxer. Now the demuxers only see one single data stream (as when using the applehttp protocol handler). --- libavformat/applehttp.c | 335 --- 1 files changed, 169

[libav-devel] [PATCH 3/3] applehttp: Merge two for loops

2011-03-31 Thread Martin Storsjö
The previous diff didn't do this straight away, to keep the diff slightly simpler. --- libavformat/applehttp.c | 17 +++-- 1 files changed, 7 insertions(+), 10 deletions(-) diff --git a/libavformat/applehttp.c b/libavformat/applehttp.c index db1dc61..fab7a26 100644 ---

Re: [libav-devel] [PATCH 2/3] applehttp: Restructure the demuxer to use a custom AVIOContext

2011-04-04 Thread Martin Storsjö
On Fri, 1 Apr 2011, Diego Biurrun wrote: On Thu, Mar 31, 2011 at 11:19:35PM +0300, Martin Storsjö wrote: This avoids issues where EOF at the end of the segment is given the variant demuxer. Now the demuxers only see one single data stream (as when using the applehttp protocol handler

Re: [libav-devel] [PATCH 0/3] applehttp demuxer rewrite

2011-04-04 Thread Martin Storsjö
On Thu, 31 Mar 2011, Luca Barbato wrote: All in all, patch ok, we need to keep the protocol since it still fixes some issues though. Pushed with the changes Diego suggested. // Martin ___ libav-devel mailing list libav-devel@libav.org

Re: [libav-devel] [PATCH 03/15] avio: make url_alloc internal.

2011-04-04 Thread Martin Storsjö
On Sun, 3 Apr 2011, Ronald S. Bultje wrote: On Thu, Mar 31, 2011 at 9:14 AM, Anton Khirnov an...@khirnov.net wrote: ---  libavformat/avio.c |    9 +++--  libavformat/avio.h |   14 +-  libavformat/mmsh.c |    5 +++--  libavformat/rtsp.c |    5 +++--  libavformat/url.h  

Re: [libav-devel] [PATCH] Factor ff_network_wait_fd and use it on udp proto

2011-04-05 Thread Martin Storsjö
On Mon, 4 Apr 2011, Luca Barbato wrote: diff --git a/libavformat/udp.c b/libavformat/udp.c index 8d50218..4e32a1e 100644 --- a/libavformat/udp.c +++ b/libavformat/udp.c @@ -444,57 +444,41 @@ static int udp_open(URLContext *h, const char *uri, int flags) return AVERROR(EIO); } +

[libav-devel] [ANNOUNCEMENT] vo-aacenc 0.1.0 and vo-amrwbenc 0.1.0

2011-04-07 Thread Martin Storsjö
Hi, When Google released the code for Android Gingerbread in December, they released source code for two new Apache 2.0 licensed audio encoders provided by VisualOn, for AAC and AMR-WB. These encoders are now wrapped up in standalone encoder libraries, vo-aacenc and vo-amrwbenc, just as for

[libav-devel] [PATCH 1/2] Add an AAC encoder by using the libvo-aacenc library

2011-04-07 Thread Martin Storsjö
--- Changelog |1 + configure |6 ++ libavcodec/Makefile |1 + libavcodec/allcodecs.c|1 + libavcodec/libvo-aacenc.c | 132 + 5 files changed, 141 insertions(+), 0 deletions(-) create mode

[libav-devel] [PATCH 2/2] Add support for AMR-WB encoding via libvo-amrwbenc

2011-04-07 Thread Martin Storsjö
The wrapper code is based on the libamr wrapper removed in SVN rev 19365. --- Changelog |1 + configure |6 ++ doc/general.texi|3 +- libavcodec/Makefile |1 + libavcodec/allcodecs.c |1 + libavcodec/libvo-amrwbenc.c

Re: [libav-devel] [PATCH 1/2] Add an AAC encoder by using the libvo-aacenc library

2011-04-07 Thread Martin Storsjö
On Thu, 7 Apr 2011, Jindřich Makovička wrote: On Thu, Apr 7, 2011 at 11:18, Martin Storsjö mar...@martin.st wrote: +    memset(params, 0, sizeof(params)); +    params.sampleRate = avctx-sample_rate; +    params.bitRate = avctx-bit_rate; +    params.nChannels = avctx-channels

Re: [libav-devel] [PATCH 1/2] Add an AAC encoder by using the libvo-aacenc library

2011-04-07 Thread Martin Storsjö
On Thu, 7 Apr 2011, Alex Converse wrote: On Thu, Apr 7, 2011 at 2:18 AM, Martin Storsjö mar...@martin.st wrote: ---  Changelog                 |    1 +  configure                 |    6 ++  libavcodec/Makefile       |    1 +  libavcodec/allcodecs.c    |    1 +  libavcodec/libvo

Re: [libav-devel] [PATCH] proto: include os_support.h in network.h

2011-04-07 Thread Martin Storsjö
On Thu, 7 Apr 2011, Luca Barbato wrote: Fix compilation on systems without poll() --- libavformat/network.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/libavformat/network.h b/libavformat/network.h index 6943bc6..84a8f53 100644 --- a/libavformat/network.h

Re: [libav-devel] [PATCH 1/2] Add an AAC encoder by using the libvo-aacenc library

2011-04-07 Thread Martin Storsjö
On Fri, 8 Apr 2011, Diego Biurrun wrote: On Thu, Apr 07, 2011 at 12:18:53PM +0300, Martin Storsjö wrote: --- Changelog |1 + configure |6 ++ libavcodec/Makefile |1 + libavcodec/allcodecs.c|1 + libavcodec/libvo-aacenc.c

Re: [libav-devel] [PATCH 2/2] Add support for AMR-WB encoding via libvo-amrwbenc

2011-04-07 Thread Martin Storsjö
On Fri, 8 Apr 2011, Diego Biurrun wrote: On Thu, Apr 07, 2011 at 12:45:13PM +0300, Martin Storsjö wrote: --- /dev/null +++ b/libavcodec/libvo-amrwbenc.c @@ -0,0 +1,126 @@ + +#include avcodec.h +#include vo-amrwbenc/enc_if.h Place system headers before local headers, separate

Re: [libav-devel] [PATCH] applehttp: don't use deprecated url_ functions.

2011-04-08 Thread Martin Storsjö
On Fri, 8 Apr 2011, Anton Khirnov wrote: --- libavformat/applehttp.c | 16 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/libavformat/applehttp.c b/libavformat/applehttp.c index 6c697c5..243f4a6 100644 --- a/libavformat/applehttp.c +++

Re: [libav-devel] [PATCH 1/2] lavf: rename avf_sdp_create to av_sdp_create.

2011-04-08 Thread Martin Storsjö
On Fri, 8 Apr 2011, Ronald S. Bultje wrote: Hi, On Fri, Apr 8, 2011 at 6:36 AM, Diego Biurrun di...@biurrun.de wrote: On Fri, Apr 08, 2011 at 12:24:34PM +0200, Anton Khirnov wrote: The new name is more consistent with the rest of the API. OK Luca, Martin, any opinions? Ok with me,

[libav-devel] [PATCH] g722: Return 8 bits per sample for g722 in av_get_bits_per_sample

2011-04-10 Thread Martin Storsjö
This fixes a failing assert in ff_raw_read_header (in fate-g722dec-1), where bits_per_coded_sample is set using this function and is required to have a positive value. --- libavcodec/utils.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/libavcodec/utils.c

Re: [libav-devel] [PATCH] g722: Return 8 bits per sample for g722 in av_get_bits_per_sample

2011-04-11 Thread Martin Storsjö
On Sun, 10 Apr 2011, Kostya wrote: On Sun, Apr 10, 2011 at 08:39:43PM +0300, Martin Storsjö wrote: This fixes a failing assert in ff_raw_read_header (in fate-g722dec-1), where bits_per_coded_sample is set using this function and is required to have a positive value. --- yes

Re: [libav-devel] [PATCH 2/2] Add support for AMR-WB encoding via libvo-amrwbenc

2011-04-11 Thread Martin Storsjö
On Mon, 11 Apr 2011, Luca Barbato wrote: On 04/08/2011 12:22 AM, Martin Storsjö wrote: The wrapper code is based on the libamr wrapper removed in SVN rev 19365. --- Changelog |1 + configure |6 ++ doc/general.texi|3

Re: [libav-devel] [PATCH 1/2] Add an AAC encoder by using the libvo-aacenc library

2011-04-11 Thread Martin Storsjö
On Mon, 11 Apr 2011, Luca Barbato wrote: On 04/08/2011 12:21 AM, Martin Storsjö wrote: Changelog |1 + configure |6 ++ doc/general.texi |2 +- libavcodec/Makefile |1 + libavcodec/allcodecs.c|1 + libavcodec

[libav-devel] [PATCH 2/2] applehttp: Handle AES-128 encrypted streams

2011-04-12 Thread Martin Storsjö
This should hopefully fix roundup issue 2586. This commit only implements it in the demuxer, not in the protocol handler. If desired, some of the code could be refactored to be shared by both implementations. Is there any use case left that the protocol implementation handles better than the

[libav-devel] [PATCH 1/2] Add a protocol handler for AES CBC decryption with PKCS7 padding

2011-04-12 Thread Martin Storsjö
This can later be extended to support other AES bit sizes, encryption, other crypto algorithms, reading the key from a URL, etc. In order to use it, the key and initialization vector has to be passed via AVOptions. Since such options can't be passed to protocols from the command line, the

Re: [libav-devel] [PATCH] flvdec: Fix support for flvtool2 keyframes based generated index

2011-04-12 Thread Martin Storsjö
On Tue, 12 Apr 2011, Anton Khirnov wrote: On Tue, Apr 12, 2011 at 11:41:13AM +0300, Martin Storsjö wrote: From: Kharkov Alexander kharkovalexan...@gmail.com Current keyframes data parser unconditionally rewind metadata to the end at the end of function. As result ALL metadata located

Re: [libav-devel] [PATCH] flvdec: Fix support for flvtool2 keyframes based generated index

2011-04-12 Thread Martin Storsjö
On Tue, 12 Apr 2011, Anton Khirnov wrote: On Tue, Apr 12, 2011 at 11:58:44AM +0300, Martin Storsjö wrote: On Tue, 12 Apr 2011, Anton Khirnov wrote: On Tue, Apr 12, 2011 at 11:41:13AM +0300, Martin Storsjö wrote: From: Kharkov Alexander kharkovalexan...@gmail.com Current

[libav-devel] [PATCH 2/3] libvo-*: Don't use deprecated sample format names and enum names

2011-04-12 Thread Martin Storsjö
--- libavcodec/libvo-aacenc.c |2 +- libavcodec/libvo-amrwbenc.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/libvo-aacenc.c b/libavcodec/libvo-aacenc.c index eb34058..205c00e 100644 --- a/libavcodec/libvo-aacenc.c +++ b/libavcodec/libvo-aacenc.c @@

Re: [libav-devel] [PATCH] flvdec: Fix support for flvtool2 keyframes based generated index

2011-04-12 Thread Martin Storsjö
On Tue, 12 Apr 2011, Anton Khirnov wrote: On Tue, Apr 12, 2011 at 12:31:28PM +0300, Martin Storsjö wrote: On Tue, 12 Apr 2011, Anton Khirnov wrote: On Tue, Apr 12, 2011 at 11:58:44AM +0300, Martin Storsjö wrote: On Tue, 12 Apr 2011, Anton Khirnov wrote: On Tue, Apr 12, 2011

Re: [libav-devel] [PATCH 1/3] libavcodec: Use const enum AVSampleFormat[] in AVCodec initialization

2011-04-12 Thread Martin Storsjö
On Tue, 12 Apr 2011, Diego Biurrun wrote: On Tue, Apr 12, 2011 at 10:44:26AM +0300, Martin Storsjö wrote: [...] OK Pushed this one // Martin___ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel

Re: [libav-devel] [PATCH 1/2] Add a protocol handler for AES CBC decryption with PKCS7 padding

2011-04-12 Thread Martin Storsjö
On Tue, 12 Apr 2011, Diego Biurrun wrote: On Tue, Apr 12, 2011 at 11:08:13AM +0300, Martin Storsjö wrote: This can later be extended to support other AES bit sizes, encryption, other crypto algorithms, reading the key from a URL, etc. --- /dev/null +++ b/libavformat/crypto.c @@ -0,0

[libav-devel] [PATCH 1/2] Add a protocol handler for AES CBC decryption with PKCS7 padding

2011-04-12 Thread Martin Storsjö
This can later be extended to support other AES bit sizes, encryption, other crypto algorithms, reading the key from a URL, etc. In order to use it, the key and initialization vector has to be passed via AVOptions. Since such options can't be passed to protocols from the command line, the

Re: [libav-devel] [PATCH] flvdec: Only parse keyframe index when the underlying protocol allows seeking

2011-04-12 Thread Martin Storsjö
On Tue, 12 Apr 2011, Luca Barbato wrote: On 04/12/2011 12:04 PM, Anton Khirnov wrote: On Tue, Apr 12, 2011 at 12:43:23PM +0300, Martin Storsjö wrote: From: Michael Niedermayer michae...@gmx.at Reading the index currently requires seeking. --- libavformat/flvdec.c |2 +- 1

Re: [libav-devel] [PATCH] flvdec: Only parse keyframe index when the underlying protocol allows seeking

2011-04-12 Thread Martin Storsjö
On Tue, 12 Apr 2011, Luca Barbato wrote: On 4/12/11 12:59 PM, Martin Storsjö wrote: On Tue, 12 Apr 2011, Anton Khirnov wrote: On Tue, Apr 12, 2011 at 12:43:23PM +0300, Martin Storsjö wrote: From: Michael Niedermayermichae...@gmx.at Reading the index currently requires

Re: [libav-devel] [PATCH] flvdec: Allow parsing keyframes metadata without seeking in most cases

2011-04-12 Thread Martin Storsjö
On Tue, 12 Apr 2011, Luca Barbato wrote: On 4/12/11 4:06 PM, Martin Storsjö wrote: On Tue, 12 Apr 2011, Luca Barbato wrote: On 4/12/11 3:47 PM, Martin Storsjö wrote: Stop the avio input at a point where amf_parse_object can continue parsing the end of the object seamlessly, when

[libav-devel] [PATCH 01/12] libopencore-amr: Remove unused code fragments

2011-04-12 Thread Martin Storsjö
This parts are heritage from the encoder part from the old libamr code removed in SVN rev 19365. --- libavcodec/libopencore-amr.c | 11 --- 1 files changed, 0 insertions(+), 11 deletions(-) diff --git a/libavcodec/libopencore-amr.c b/libavcodec/libopencore-amr.c index a7abe26..c11c924

[libav-devel] [PATCH 02/12] libopencore-amr: Make the opaque encoder pointer a void*

2011-04-12 Thread Martin Storsjö
--- libavcodec/libopencore-amr.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavcodec/libopencore-amr.c b/libavcodec/libopencore-amr.c index c11c924..52dfe10 100644 --- a/libavcodec/libopencore-amr.c +++ b/libavcodec/libopencore-amr.c @@ -73,7 +73,7 @@ static int

[libav-devel] [PATCH 03/12] libopencore-amr: Remove a useless debugging variable and commented out logging

2011-04-12 Thread Martin Storsjö
--- libavcodec/libopencore-amr.c | 15 --- 1 files changed, 0 insertions(+), 15 deletions(-) diff --git a/libavcodec/libopencore-amr.c b/libavcodec/libopencore-amr.c index 52dfe10..0e467a6 100644 --- a/libavcodec/libopencore-amr.c +++ b/libavcodec/libopencore-amr.c @@ -71,7 +71,6

[libav-devel] [PATCH 06/12] libopencore-amr, libvo-amrwbenc: Return proper error return codes in most places

2011-04-12 Thread Martin Storsjö
--- libavcodec/libopencore-amr.c | 16 libavcodec/libvo-amrwbenc.c |8 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/libavcodec/libopencore-amr.c b/libavcodec/libopencore-amr.c index e6958c9..8a8c18b 100644 --- a/libavcodec/libopencore-amr.c +++

Re: [libav-devel] [PATCH 3/3] libvo-aacenc: Only produce extradata if the global header flag is set

2011-04-13 Thread Martin Storsjö
On Tue, 12 Apr 2011, Ronald S. Bultje wrote: On Tue, Apr 12, 2011 at 3:44 AM, Martin Storsjö mar...@martin.st wrote: ---  libavcodec/libvo-aacenc.c |   18 ++  1 files changed, 10 insertions(+), 8 deletions(-) diff --git a/libavcodec/libvo-aacenc.c b/libavcodec/libvo

Re: [libav-devel] [PATCH 2/2] applehttp: Handle AES-128 encrypted streams

2011-04-13 Thread Martin Storsjö
On Tue, 12 Apr 2011, Ronald S. Bultje wrote: Hi, On Tue, Apr 12, 2011 at 4:08 AM, Martin Storsjö mar...@martin.st wrote: This should hopefully fix roundup issue 2586. This commit only implements it in the demuxer, not in the protocol handler. If desired, some of the code could

Re: [libav-devel] [PATCH 03/12] libopencore-amr: Remove a useless debugging variable and commented out logging

2011-04-13 Thread Martin Storsjö
On Tue, 12 Apr 2011, Ronald S. Bultje wrote: On Tue, Apr 12, 2011 at 5:58 PM, Martin Storsjö mar...@martin.st wrote: ---  libavcodec/libopencore-amr.c |   15 ---  1 files changed, 0 insertions(+), 15 deletions(-) [..] diff --git a/libavcodec/libopencore-amr.c b/libavcodec

Re: [libav-devel] [PATCH 12/12] libopencore-amr, libvo-amrwbenc: Dynamically print the bitrate error message

2011-04-13 Thread Martin Storsjö
On Tue, 12 Apr 2011, Ronald S. Bultje wrote: On Tue, Apr 12, 2011 at 5:58 PM, Martin Storsjö mar...@martin.st wrote: ---  libavcodec/libopencore-amr.c |   18 --  libavcodec/libvo-amrwbenc.c  |   17 ++---  2 files changed, 14 insertions(+), 21 deletions

[libav-devel] [PATCH 1/6] libopencore-amr: Remove an unused state variable

2011-04-13 Thread Martin Storsjö
--- libavcodec/libopencore-amr.c |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/libavcodec/libopencore-amr.c b/libavcodec/libopencore-amr.c index 5110d05..e93fb3d 100644 --- a/libavcodec/libopencore-amr.c +++ b/libavcodec/libopencore-amr.c @@ -234,7 +234,6 @@ AVCodec

[libav-devel] [PATCH 2/6] libopencore-amr: Convert commented out debug logging into av_dlog

2011-04-13 Thread Martin Storsjö
Also add the avctx as logging context --- libavcodec/libopencore-amr.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libavcodec/libopencore-amr.c b/libavcodec/libopencore-amr.c index e93fb3d..2945905 100644 --- a/libavcodec/libopencore-amr.c +++

[libav-devel] [PATCH 3/6] libopencore-amr, libvo-amrbwenc: Rename variables and functions

2011-04-13 Thread Martin Storsjö
Avoid camel cased names for functions and variables. --- Okd by Ronald before, but not queued yet due to changes in earlier patches that this one depends on. libavcodec/libopencore-amr.c | 38 +++--- libavcodec/libvo-amrwbenc.c |6 +++--- 2 files changed,

[libav-devel] [PATCH 4/6] libopencore-amr: Cosmetics: Rewrap and align

2011-04-13 Thread Martin Storsjö
--- Okd by Ronald before, but not queued yet due to changes in earlier patches that this one depends on. libavcodec/libopencore-amr.c | 26 +++--- 1 files changed, 11 insertions(+), 15 deletions(-) diff --git a/libavcodec/libopencore-amr.c b/libavcodec/libopencore-amr.c

[libav-devel] [PATCH 5/6] libopencore-amr, libvo-amrwbenc: Find the closest matching bitrate

2011-04-13 Thread Martin Storsjö
Dynamically print the supported bitrates from the local table, instead of using a hardcoded log message. --- libavcodec/libopencore-amr.c | 36 libavcodec/libvo-amrwbenc.c | 37 - 2 files changed, 40 insertions(+), 33

[libav-devel] [PATCH 6/6] libopencore-amr, libvo-amrwbenc: Only check the bitrate when changed

2011-04-13 Thread Martin Storsjö
Also rename the incorrectly named enc_bitrate to enc_mode, use the enc_bitrate variable for storing the last chosen bitrate. This avoids continuous warning log messages if not using an exactly matching bitrate, while still allowing changing bitrate at any point. --- libavcodec/libopencore-amr.c

Re: [libav-devel] [PATCH 2/6] libopencore-amr: Convert commented out debug logging into av_dlog

2011-04-13 Thread Martin Storsjö
On Wed, 13 Apr 2011, Diego Biurrun wrote: On Wed, Apr 13, 2011 at 11:16:49AM +0300, Martin Storsjö wrote: Also add the avctx as logging context Please end your sentences in periods, even in log messages. Yeah, noticed after sending the mails, fixed locally already

Re: [libav-devel] [PATCH 3/6] libopencore-amr, libvo-amrbwenc: Rename variables and functions

2011-04-13 Thread Martin Storsjö
On Wed, 13 Apr 2011, Diego Biurrun wrote: On Wed, Apr 13, 2011 at 11:16:50AM +0300, Martin Storsjö wrote: Avoid camel cased names for functions and variables. camelCase ;) OK --- a/libavcodec/libopencore-amr.c +++ b/libavcodec/libopencore-amr.c @@ -81,9 +81,9 @@ static av_cold

Re: [libav-devel] [PATCH 3/3] libvo-aacenc: Only produce extradata if the global header flag is set

2011-04-13 Thread Martin Storsjö
On Wed, 13 Apr 2011, Ronald S. Bultje wrote: On Wed, Apr 13, 2011 at 2:49 AM, Martin Storsjö mar...@martin.st wrote: On Tue, 12 Apr 2011, Ronald S. Bultje wrote: On Tue, Apr 12, 2011 at 3:44 AM, Martin Storsjö mar...@martin.st wrote: ---  libavcodec/libvo-aacenc.c |   18

[libav-devel] [PATCH] libvo-* Mention VisualOn in the new codecs' long names

2011-04-13 Thread Martin Storsjö
From: Carl Eugen Hoyos ceho...@ag.or.at --- libavcodec/libvo-aacenc.c |2 +- libavcodec/libvo-amrwbenc.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/libvo-aacenc.c b/libavcodec/libvo-aacenc.c index 7006d78..0321e77 100644 ---

[libav-devel] [PATCH] libopencore-amr, libvo-amrwbenc: Allow enabling DTX via private AVOptions

2011-04-13 Thread Martin Storsjö
DTX, discontinuous transmission, allows emitting frames with comfort noise when no voice is detected in the input audio. --- libavcodec/libopencore-amr.c | 15 ++- libavcodec/libvo-amrwbenc.c | 13 - 2 files changed, 26 insertions(+), 2 deletions(-) diff --git

[libav-devel] [PATCH] libvo-*: Fix up the long codec names

2011-04-13 Thread Martin Storsjö
Include VisualOn to clarify the codec name, but remove the actual library name from the user-friendly description. Also mention Android, to clarify which VisualOn implementation this refers to, since they do sell other variants of the same code, too. --- libavcodec/libvo-aacenc.c |2 +-

Re: [libav-devel] [PATCH 5/6] libopencore-amr, libvo-amrwbenc: Find the closest matching bitrate

2011-04-13 Thread Martin Storsjö
On Wed, 13 Apr 2011, Martin Storsjö wrote: Dynamically print the supported bitrates from the local table, instead of using a hardcoded log message. --- libavcodec/libopencore-amr.c | 36 libavcodec/libvo-amrwbenc.c | 37

Re: [libav-devel] [PATCH] libavcodec: Bump micro after adding the dtx AVOptions

2011-04-14 Thread Martin Storsjö
On Wed, 13 Apr 2011, Ronald S. Bultje wrote: On Wed, Apr 13, 2011 at 6:05 PM, Martin Storsjö mar...@martin.st wrote: ---  libavcodec/version.h |    2 +-  1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavcodec/version.h b/libavcodec/version.h index bad6509..0e2d766

Re: [libav-devel] [PATCH 1/3] introduce side information for AVPacket

2011-04-18 Thread Martin Storsjö
On Mon, 18 Apr 2011, Ronald S. Bultje wrote: Hi, On Mon, Apr 18, 2011 at 1:04 AM, Reinhard Tartler siret...@tauware.de wrote: On Fri, Apr 15, 2011 at 18:05:48 (CEST), Luca Barbato wrote: diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 109d2a4..df4e617 100644 ---

Re: [libav-devel] [PATCH] announce the 0.7 beta1 release

2011-04-19 Thread Martin Storsjö
On Tue, 19 Apr 2011, Reinhard Tartler wrote: On Tue, Apr 19, 2011 at 12:59:20 (CEST), Luca Barbato wrote: On 04/17/2011 10:17 PM, Reinhard Tartler wrote: [...] All ok but +a href=releases/libav-0.7b1.tar.bz2Download bzip2 tarball/anbsp;nbsp; +a

[libav-devel] [PATCH] libavformat: Free AVFormatContext-streams

2011-04-20 Thread Martin Storsjö
After switching this from a statically allocated array to a dynamically allocated one in the major bump, this needs explicit freeing. --- Tested that it passes FATE, too. libavformat/utils.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/libavformat/utils.c

Re: [libav-devel] [PATCH] applehttp: Expose the stream bitrate via metadata

2011-04-20 Thread Martin Storsjö
On Wed, 20 Apr 2011, Ronald S. Bultje wrote: Hi, On Wed, Apr 20, 2011 at 7:49 AM, Martin Storsjö mar...@martin.st wrote: This helps callers to intelligently switch between bitrate variants. ---  libavformat/applehttp.c |    3 +++  1 files changed, 3 insertions(+), 0 deletions

[libav-devel] [PATCH 1/2] rtp: Add an rtp_ prefix to the dynamic payload handler open/close functions

2011-04-20 Thread Martin Storsjö
This avoids clashes if we internally want to override the global open function. --- libavformat/rdt.c |4 ++-- libavformat/rtpdec.h |4 ++-- libavformat/rtpdec_amr.c |8 libavformat/rtpdec_asf.c |4 ++-- libavformat/rtpdec_h264.c |4 ++--

[libav-devel] [PATCH 2/2] Handle unicode file names on windows

2011-04-20 Thread Martin Storsjö
From: Kirill Gavrilov gavr.m...@gmail.com All file names should be in UTF-8 within libavformat. This is handled by mapping the open() function to an internal one in os_support.h for windows. fopen() could be overridden in the same way, but if that would be used from ffmpeg.c, it would add a

[libav-devel] [PATCH 2/2] Handle unicode file names on windows

2011-04-20 Thread Martin Storsjö
From: Kirill Gavrilov gavr.m...@gmail.com All file names should be in UTF-8 within libavformat. This is handled by mapping the open() function to an internal one in os_support.h for windows. fopen() could be overridden in the same way, but if that would be used from ffmpeg.c, it would add a

[libav-devel] [PATCH 2/2] applehttp: Handle AES-128 encrypted streams

2011-04-20 Thread Martin Storsjö
This should hopefully fix roundup issue 2586. This commit only implements it in the demuxer, not in the protocol handler. If desired, some of the code could be refactored to be shared by both implementations. --- This was OKd by Ronald before, but the crypto protocol patch wasn't OKd yet.

Re: [libav-devel] [PATCH] applehttp: Expose the stream bitrate via metadata

2011-04-20 Thread Martin Storsjö
On Wed, 20 Apr 2011, Martin Storsjö wrote: On Wed, 20 Apr 2011, Ronald S. Bultje wrote: Hi, On Wed, Apr 20, 2011 at 8:05 AM, Martin Storsjö mar...@martin.st wrote: On Wed, 20 Apr 2011, Ronald S. Bultje wrote: On Wed, Apr 20, 2011 at 7:49 AM, Martin Storsjö mar...@martin.st wrote

[libav-devel] [PATCH] avio: Fix sanity checks in ffurl_read*

2011-04-20 Thread Martin Storsjö
This fixes e.g. reading data over HTTP, where the underlying socket is set to read/write. --- libavformat/avio.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/avio.c b/libavformat/avio.c index 074d3ee..0702aff 100644 --- a/libavformat/avio.c +++

Re: [libav-devel] [PATCH] applehttp: Expose the stream bitrate via metadata

2011-04-20 Thread Martin Storsjö
On Wed, 20 Apr 2011, Ronald S. Bultje wrote: On Wed, Apr 20, 2011 at 9:44 AM, Martin Storsjö mar...@martin.st wrote: To add more to the explanation - currently, the info about which AVStream belongs to which variant stream actually is available, it's stored in AVStream-id, where the int

[libav-devel] [PATCH] Makefile: Include dependencies for test tools, too

2011-04-20 Thread Martin Storsjö
This makes seek_test to be rebuilt when its dependencies has changed. The changes to the dependencies didn't usually matter in practice, but the introduction of side data in AVPacket required a recompilation. --- Makefile |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git

[libav-devel] [PATCH 1/2] doc: Add some initial docs on the applehttp demuxer

2011-04-20 Thread Martin Storsjö
--- doc/demuxers.texi |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/doc/demuxers.texi b/doc/demuxers.texi index bbdde9c..4168fc1 100644 --- a/doc/demuxers.texi +++ b/doc/demuxers.texi @@ -64,4 +64,13 @@ Note that the pattern must not necessarily contain %d or

[libav-devel] [PATCH 2/2] applehttp: Expose the stream bitrate via metadata

2011-04-20 Thread Martin Storsjö
This helps callers to intelligently switch between bitrate variants. --- doc/demuxers.texi |2 ++ libavformat/applehttp.c |3 +++ libavformat/version.h |2 +- 3 files changed, 6 insertions(+), 1 deletions(-) diff --git a/doc/demuxers.texi b/doc/demuxers.texi index

Re: [libav-devel] [PATCH 2/2] applehttp: Expose the stream bitrate via metadata

2011-04-21 Thread Martin Storsjö
On Thu, 21 Apr 2011, Anton Khirnov wrote: On Wed, 20 Apr 2011 23:08:40 +0300, Martin Storsjö mar...@martin.st wrote: This helps callers to intelligently switch between bitrate variants. --- doc/demuxers.texi |2 ++ libavformat/applehttp.c |3 +++ libavformat/version.h

[libav-devel] [PATCH] libavdevice: Define _XOPEN_SOURCE for usleep

2011-04-21 Thread Martin Storsjö
This hopefully fixes build failures on Dragonfly BSD. --- It's untested in practice, but all other files that use usleep define _XOPEN_SOURCE=600. libavdevice/bktr.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/libavdevice/bktr.c b/libavdevice/bktr.c index

[libav-devel] [PATCH] Provide a fallback version of the libm function trunc

2011-04-21 Thread Martin Storsjö
This fixes compilation on DOS. --- configure|2 ++ libavutil/libm.h |7 +++ 2 files changed, 9 insertions(+), 0 deletions(-) diff --git a/configure b/configure index 32c3544..dd44ba4 100755 --- a/configure +++ b/configure @@ -1119,6 +1119,7 @@ HAVE_LIST= sys_videoio_h

[libav-devel] [PATCH] Mention that DragonFly BSD requires __BSD_VISIBLE set

2011-04-21 Thread Martin Storsjö
Setting this should fix the FATE build failure on DragonFly BSD, since inet_aton only is visible if __BSD_VISIBLE is set. Alternatively, a line defining __BSD_VISIBLE=1 could be added at the top of os_support.c. For FreeBSD, similar lines are required in libavdevice/bktr.c and

[libav-devel] [PATCH] doc: FLV muxing is supported.

2011-04-22 Thread Martin Storsjö
From: Carl Eugen Hoyos ceho...@ag.or.at --- doc/general.texi |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/doc/general.texi b/doc/general.texi index edd5e60..303159e 100644 --- a/doc/general.texi +++ b/doc/general.texi @@ -96,7 +96,7 @@ library: @tab Only

Re: [libav-devel] [PATCH 1/2] Add a protocol handler for AES CBC decryption with PKCS7 padding

2011-04-22 Thread Martin Storsjö
On Wed, 20 Apr 2011, Anton Khirnov wrote: This could use more verbosity, especially if it'll be visible to users later on. Otherwise looks fine to me. Since both patches had gotten ok's now - pushed. // Martin ___ libav-devel mailing list

Re: [libav-devel] [PATCH 2/2] Handle unicode file names on windows

2011-04-22 Thread Martin Storsjö
On Wed, 20 Apr 2011, Martin Storsjö wrote: From: Kirill Gavrilov gavr.m...@gmail.com All file names should be in UTF-8 within libavformat. This is handled by mapping the open() function to an internal one in os_support.h for windows. fopen() could be overridden in the same way

Re: [libav-devel] [PATCH] Mention that DragonFly BSD requires __BSD_VISIBLE set

2011-04-22 Thread Martin Storsjö
On Fri, 22 Apr 2011, Måns Rullgård wrote: Ronald S. Bultje rsbul...@gmail.com writes: Hi, On Thu, Apr 21, 2011 at 5:48 PM, Martin Storsjö mar...@martin.st wrote: Setting this should fix the FATE build failure on DragonFly BSD, since inet_aton only is visible if __BSD_VISIBLE is set

Re: [libav-devel] [PATCH 2/2] Handle unicode file names on windows

2011-04-23 Thread Martin Storsjö
On Sat, 23 Apr 2011, Luca Barbato wrote: On 4/20/11 3:26 PM, Martin Storsjö wrote: From: Kirill Gavrilovgavr.m...@gmail.com All file names should be in UTF-8 within libavformat. This is handled by mapping the open() function to an internal one in os_support.h for windows

Re: [libav-devel] [PATCH] Mention that DragonFly BSD requires __BSD_VISIBLE set

2011-04-23 Thread Martin Storsjö
On Fri, 22 Apr 2011, Måns Rullgård wrote: Martin Storsjö mar...@martin.st writes: On Fri, 22 Apr 2011, Måns Rullgård wrote: __BSD_VISIBLE should not be set directly, IIRC. _BSD_SOURCE is the correct symbol to define. This can be done with add_cppflags -D_BSD_SOURCE in the relevant

Re: [libav-devel] [PATCH 3/3] aacenc: Fix whitespace after last commit.

2011-04-23 Thread Martin Storsjö
On Tue, 5 Apr 2011, Kostya wrote: On Tue, Apr 05, 2011 at 01:05:24AM -0600, Nathan Caldwell wrote: --- libavcodec/aacpsy.c | 23 +-- 1 files changed, 13 insertions(+), 10 deletions(-) diff --git a/libavcodec/aacpsy.c b/libavcodec/aacpsy.c index

[libav-devel] [PATCH 2/2] Handle unicode file names on windows

2011-04-23 Thread Martin Storsjö
From: Kirill Gavrilov gavr.m...@gmail.com All file names should be in UTF-8 within libavformat. This is handled by mapping the open() function to an internal one in os_support.h for windows. fopen() could be overridden in the same way, but if that would be used from ffmpeg.c, it would add a

[libav-devel] [PATCH] crypto: Use av_freep instead of av_free

2011-04-24 Thread Martin Storsjö
Using av_freep is generally good practice. --- libavformat/crypto.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libavformat/crypto.c b/libavformat/crypto.c index ea6012a..fecc2c9 100644 --- a/libavformat/crypto.c +++ b/libavformat/crypto.c @@ -153,9 +153,9 @@

[libav-devel] [PATCH] applehttp: Don't export variant_bitrate if it isn't known

2011-04-24 Thread Martin Storsjö
If there are no variants, the total bitrate of the single stream isn't known, and exporting variant_bitrate = 0 does look weird, since there really aren't any variants. --- libavformat/applehttp.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/libavformat/applehttp.c

Re: [libav-devel] [PATCH] win32: include the correct header in cmdutils.c

2011-04-25 Thread Martin Storsjö
On Mon, 25 Apr 2011, lu_z...@gentoo.org wrote: From: Luca Barbato lu_z...@gentoo.org CommandLineToArgvW requires windows.h, include it directly --- cmdutils.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/cmdutils.c b/cmdutils.c index f25f61d..d15aba0 100644

Re: [libav-devel] [PATCH] no infinite wait on remote host disconnect

2011-04-26 Thread Martin Storsjö
On Tue, 26 Apr 2011, Gil Pedersen wrote: Attached patch will allow ff_network_wait_fd() to return when the fd encounters an error or disconnection (HUP). Once returned, the next read/write call on the fd will result in an error and possibly a signal, which should provide better feedback

[libav-devel] [PATCH] avio: Fix the deprecated fallback URL-prefixed open flags

2011-04-28 Thread Martin Storsjö
While deprecated, they're totally useless as long as their values are different from the AVIO_FLAG values that are used internally. Currently, this leads to old libav applications still compiling correctly (since we haven't removed the fallback wrappers), but failing since the functions internally

Re: [libav-devel] [PATCH] vorbisdec: Replace some sizeof(type) by sizeof(variable).

2011-04-28 Thread Martin Storsjö
On Thu, 28 Apr 2011, Diego Biurrun wrote: --- libavcodec/vorbisdec.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libavcodec/vorbisdec.c b/libavcodec/vorbisdec.c index a9ddc7d..4bd842e 100644 --- a/libavcodec/vorbisdec.c +++ b/libavcodec/vorbisdec.c @@

Re: [libav-devel] [PATCH] avio: Fix the deprecated fallback URL-prefixed open flags

2011-04-28 Thread Martin Storsjö
On Thu, 28 Apr 2011, Luca Barbato wrote: On 4/28/11 9:41 AM, Martin Storsjö wrote: These should be removed at some point, but they aren't removed yet. The intent is to be able to recompile an old application against the new ABI without modifying the code, and this doesn't work currently

Re: [libav-devel] respecting AVFMT_FLAG_NONBLOCK in AVIO

2011-05-01 Thread Martin Storsjö
On Sun, 1 May 2011, aviad rozenhek wrote: On Sun, May 1, 2011 at 16:04, Ronald S. Bultje rsbul...@gmail.com wrote: We need a demuxer-supports-nonblock (or doesnotsupport-nonblock) flag so we can turn it off for the demuxers not supporting it. doesn't retry_transfer_wrapper() already take

[libav-devel] [PATCH] udp: Fix receiving RTP data over multicast

2011-05-09 Thread Martin Storsjö
Earlier, AVIO_RDWR was handled as READ, and all the checks for the AVIO_WRONLY flag explicitly meant the write-only case. When changed from old AVIO/URL contants to AVIO_FLAG in 59d96941f0285a5, these comparisons were updated incorrectly, by mapping checks for AVIO_WRONLY to checks for

[libav-devel] [PATCH] rtpproto: Remove an unused variable

2011-05-09 Thread Martin Storsjö
--- libavformat/rtpproto.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/libavformat/rtpproto.c b/libavformat/rtpproto.c index e1659ee..1340665 100644 --- a/libavformat/rtpproto.c +++ b/libavformat/rtpproto.c @@ -138,15 +138,13 @@ static int rtp_open(URLContext *h,

[libav-devel] [PATCH] mpegtsenc: Clear st-priv_data when freeing it

2011-05-09 Thread Martin Storsjö
If not cleared, the caller might try to free it. --- libavformat/mpegtsenc.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index bf66aa0..55a16f7 100644 --- a/libavformat/mpegtsenc.c +++ b/libavformat/mpegtsenc.c @@

[libav-devel] [PATCH] rtsp: Only do keepalive using GET_PARAMETER if the server supports it

2011-05-09 Thread Martin Storsjö
This is more like what VLC does. If the server doesn't mention supporting GET_PARAMETER in response to an OPTIONS request, VLC doesn't send any keepalive requests at all. After this patch, libavformat will still send OPTIONS keepalives if GET_PARAMETER isn't explicitly said to be supported. Some

[libav-devel] [PATCH] rtpdec_qdm2: Don't try to parse data packet if no configuration is received

2011-05-12 Thread Martin Storsjö
The later parsing of payload data depends on the configuration being present. If it hasn't been configured properly yet, parsing a data packet may lead to a crash. --- libavformat/rtpdec_qdm2.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/libavformat/rtpdec_qdm2.c

  1   2   3   4   5   6   7   8   9   10   >