[libav-devel] [PATCH] avio: cosmetics - nicer vertical alignment.

2011-03-23 Thread Anton Khirnov
--- libavformat/avio.h |2 +- libavformat/avio_internal.h |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/avio.h b/libavformat/avio.h index 753fa0c..d11c398 100644 --- a/libavformat/avio.h +++ b/libavformat/avio.h @@ -416,7 +416,7 @@

[libav-devel] [PATCH] lavf: inspect more frames for fps when container time base is coarse

2011-03-28 Thread Anton Khirnov
From: Anssi Hannula anssi.hann...@iki.fi As per issue2629, most 23.976fps matroska H.264 files are incorrectly detected as 24fps, as the matroska timestamps usually have only millisecond precision. Fix that by doubling the amount of timestamps inspected for frame rate for streams that have

[libav-devel] [PATCH 1/2] lavf: update AVStream.nb_frames when muxing.

2011-03-28 Thread Anton Khirnov
--- libavformat/matroskaenc.c |2 +- libavformat/utils.c |7 +++ 2 files changed, 8 insertions(+), 1 deletions(-) diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index 4f9bf0a..54c74a6 100644 --- a/libavformat/matroskaenc.c +++ b/libavformat/matroskaenc.c @@

[libav-devel] [PATCH 2/2] mp3enc: write a xing frame containing number of frames in the file

2011-03-28 Thread Anton Khirnov
--- libavcodec/Makefile |1 + libavformat/mp3enc.c | 74 ++--- 2 files changed, 70 insertions(+), 5 deletions(-) diff --git a/libavcodec/Makefile b/libavcodec/Makefile index 85d9a34..f9b1bf8 100644 --- a/libavcodec/Makefile +++

Re: [libav-devel] [PATCH] Chronomaster DFA decoder

2011-03-28 Thread Anton Khirnov
On Fri, Mar 25, 2011 at 07:59:38AM -0400, Ronald S. Bultje wrote: Hi, On Fri, Mar 25, 2011 at 6:14 AM, Kostya kostya.shish...@gmail.com wrote: [..] Current patch looks OK to me, I'll give others one more day to comment and will apply tomorrow. Pushed. -- Anton Khirnov signature.asc

Re: [libav-devel] [PATCH 1/2] framebuffer device demuxer

2011-03-28 Thread Anton Khirnov
On Mon, Mar 28, 2011 at 09:51:39AM +0200, Diego Biurrun wrote: On Mon, Mar 28, 2011 at 08:10:34AM +0200, Anton Khirnov wrote: Sorry, I don't know enough about lavc/rawdec to be able to do that. So unless somebody else feels like looking into this, I'd commit the attached (the two patches

Re: [libav-devel] [PATCH 4/4] Add MxPEG decoder

2011-03-29 Thread Anton Khirnov
? I don't see those functions used anywhere. -- Anton Khirnov signature.asc Description: Digital signature ___ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel

Re: [libav-devel] [PATCH 1/2] lavf: update AVStream.nb_frames when muxing.

2011-03-29 Thread Anton Khirnov
that it will be wrong when packet != frame (slightly evil) 2) add a nb_packets field (somewhat bloaty) 3) have each muxer manage this by itself (evil) -- Anton Khirnov signature.asc Description: Digital signature ___ libav-devel mailing list libav-devel

Re: [libav-devel] [PATCH 4/4] Add MxPEG decoder

2011-03-29 Thread Anton Khirnov
On Tue, Mar 29, 2011 at 11:13:48PM +0400, Anatoly Nenashev wrote: On 29.03.2011 10:15, Anton Khirnov wrote: From 93386fa5062b1d86249561d96b4e1aaa6a6200b2 Mon Sep 17 00:00:00 2001 From: anatolyanatoly.nenas...@ovsoft.ru Date: Mon, 28 Mar 2011 20:02:19 +0400 Subject: [PATCH 4/4] Add MxPEG

[libav-devel] [PATCH] flvdec: read index stored in the 'keyframes' tag.

2011-03-30 Thread Anton Khirnov
From: Kharkov Alexander kharkovalexan...@gmail.com 'keyframes' metatag is not part of the standard, it is just convention to use such kind of metatag information for indexing. Structure is following, it allows to have it inconsistent: keyframes: times (array): time0 (num) time1 (num) time2

[libav-devel] [PATCH] APIChanges: mark the place where 0.6 was branched.

2011-03-30 Thread Anton Khirnov
--- doc/APIchanges |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/doc/APIchanges b/doc/APIchanges index 2932028..d242791 100644 --- a/doc/APIchanges +++ b/doc/APIchanges @@ -453,16 +453,22 @@ API changes, most recent first: 2010-05-26 - r23334 - lavc 52.72.0 -

Re: [libav-devel] [PATCH] APIChanges: mark the place where 0.6 was branched.

2011-03-30 Thread Anton Khirnov
On Wed, Mar 30, 2011 at 08:19:38AM -0700, Ronald S. Bultje wrote: Hi, On Wed, Mar 30, 2011 at 7:57 AM, Anton Khirnov an...@khirnov.net wrote: ---  doc/APIchanges |    6 ++  1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/doc/APIchanges b/doc/APIchanges index

Re: [libav-devel] [PATCH] mlp_parse.c: set AVCodecContext channel_layout

2011-03-30 Thread Anton Khirnov
On Mon, Mar 28, 2011 at 01:56:45AM +0200, Benjamin Larsson wrote: On 03/26/2011 03:34 AM, John Stebbins wrote: The channel layout isn't getting set for mlp and truehd audio. Patch ok. Pushed. -- Anton Khirnov signature.asc Description: Digital signature

Re: [libav-devel] [PATCH 2/2] mov: Add support for zero-sized stsc runs.

2011-03-30 Thread Anton Khirnov
changed, 1 insertions(+), 1 deletions(-) Ok. Pushed. -- Anton Khirnov signature.asc Description: Digital signature ___ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel

Re: [libav-devel] [PATCH] flvdec: read index stored in the 'keyframes' tag.

2011-03-30 Thread Anton Khirnov
On Wed, Mar 30, 2011 at 08:23:50PM +0200, Luca Barbato wrote: On 03/30/2011 03:56 PM, Anton Khirnov wrote: From: Kharkov Alexander kharkovalexan...@gmail.com 'keyframes' metatag is not part of the standard, it is just convention to use such kind of metatag information for indexing

[libav-devel] [PATCH] avio: document avio_alloc_context.

2011-03-31 Thread Anton Khirnov
--- libavformat/avio.h | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/libavformat/avio.h b/libavformat/avio.h index 12fa2d5..24c36f7 100644 --- a/libavformat/avio.h +++ b/libavformat/avio.h @@ -458,6 +458,17 @@ attribute_deprecated void

[libav-devel] [PATCH] avio: make url_fdopen internal.

2011-03-31 Thread Anton Khirnov
The unbuffered URLContext API will be made private, so there's no point in this function being public. --- libavformat/avio.h | 14 +- libavformat/avio_internal.h | 13 + libavformat/aviobuf.c |8 ++-- libavformat/rtpenc_chain.c |3 ++- 4

[libav-devel] [PATCH 01/15] avio: deprecate url_poll and URLPollEntry

2011-03-31 Thread Anton Khirnov
They're unimplemented and nobody cared to do anything with that for 10 years. --- libavformat/avio.h |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/libavformat/avio.h b/libavformat/avio.h index 12fa2d5..02a02ba 100644 --- a/libavformat/avio.h +++

[libav-devel] [PATCH 02/15] avio: deprecate url_open_protocol

2011-03-31 Thread Anton Khirnov
The unbuffered API will be made private and it's not used anywhere internally. --- libavformat/avio.c |2 ++ libavformat/avio.h | 22 +++--- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/libavformat/avio.c b/libavformat/avio.c index d7c2eb4..f6f067d 100644

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

2011-03-31 Thread Anton Khirnov
--- libavformat/avio.c |9 +++-- libavformat/avio.h | 14 +- libavformat/mmsh.c |5 +++-- libavformat/rtsp.c |5 +++-- libavformat/url.h | 43 +++ 5 files changed, 57 insertions(+), 19 deletions(-) create mode 100644

[libav-devel] [PATCH 06/15] avio: make url_read() internal.

2011-03-31 Thread Anton Khirnov
--- libavformat/applehttpproto.c |2 +- libavformat/avio.c |6 +- libavformat/avio.h | 12 +--- libavformat/aviobuf.c|2 +- libavformat/concat.c |2 +- libavformat/gopher.c |2 +- libavformat/http.c |4

[libav-devel] [PATCH 08/15] avio: make url_write() internal.

2011-03-31 Thread Anton Khirnov
--- libavformat/avio.c |6 +- libavformat/avio.h |9 + libavformat/aviobuf.c |2 +- libavformat/gopher.c|2 +- libavformat/http.c | 12 ++-- libavformat/md5proto.c |2 +- libavformat/mmst.c |2 +- libavformat/rtmppkt.c |

[libav-devel] [PATCH 07/15] avio: make url_read_complete() internal.

2011-03-31 Thread Anton Khirnov
--- libavformat/avio.c |6 +- libavformat/avio.h | 10 +- libavformat/mmsh.c | 10 +- libavformat/mmst.c |8 libavformat/rtmppkt.c | 16 libavformat/rtmpproto.c |4 ++-- libavformat/rtsp.c |8

[libav-devel] [PATCH 10/15] avio: make url_seek() internal.

2011-03-31 Thread Anton Khirnov
--- libavformat/avio.c| 18 +++--- libavformat/avio.h| 17 + libavformat/aviobuf.c |2 +- libavformat/concat.c |6 +++--- libavformat/url.h | 16 5 files changed, 32 insertions(+), 27 deletions(-) diff --git

[libav-devel] [PATCH 13/15] avio: make url_get_file_handle() internal.

2011-03-31 Thread Anton Khirnov
--- libavformat/avio.c |6 +- libavformat/avio.h |9 + libavformat/http.c |2 +- libavformat/rtpproto.c |4 ++-- libavformat/rtsp.c |8 libavformat/rtspenc.c |2 +- libavformat/sapdec.c |2 +- libavformat/sapenc.c |2 +-

[libav-devel] [PATCH 09/15] avio: cosmetics, move AVSEEK_SIZE/FORCE declarations together

2011-03-31 Thread Anton Khirnov
--- libavformat/avio.h | 30 +++--- 1 files changed, 15 insertions(+), 15 deletions(-) diff --git a/libavformat/avio.h b/libavformat/avio.h index 0931284..41a1d03 100644 --- a/libavformat/avio.h +++ b/libavformat/avio.h @@ -111,13 +111,6 @@ attribute_deprecated int

Re: [libav-devel] [PATCH 5/9] avio: deprecate url_fileno

2011-03-31 Thread Anton Khirnov
, how long it was, or control when the chunks are cut exactly, whether the chunks are actually sent into the storage etc. Wouldn't you be better off using a custom AVIOContext then? -- Anton Khirnov signature.asc Description: Digital signature

Re: [libav-devel] [PATCH] avio: document avio_alloc_context.

2011-03-31 Thread Anton Khirnov
On Thu, Mar 31, 2011 at 02:07:19PM +0200, Kostya wrote: On Thu, Mar 31, 2011 at 01:58:03PM +0200, Anton Khirnov wrote: --- libavformat/avio.h | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/libavformat/avio.h b/libavformat/avio.h index 12fa2d5

[libav-devel] [PATCH] lavf: make compute_chapters_end less picky.

2011-03-31 Thread Anton Khirnov
In particular, now it assumes that a) chapters are chronologically ordered b) chapters have the same timebases c) duration of the stream is known and asserts if any of these is not met. Make it properly deal with harsher conditions. fixes issue2320 --- libavformat/utils.c | 27

[libav-devel] [PATCH] ape: check that number of seektable entries is equal to number of frames

2011-04-01 Thread Anton Khirnov
From: Kostya Shishkov kostya.shish...@gmail.com fixes issue2480 Signed-off-by: Anton Khirnov an...@khirnov.net --- libavformat/ape.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/libavformat/ape.c b/libavformat/ape.c index 6c8880d..5aac00c 100644 --- a/libavformat

Re: [libav-devel] [PATCH] ape: check that number of seektable entries is equal to number of frames

2011-04-01 Thread Anton Khirnov
On Fri, Apr 01, 2011 at 09:42:14AM +0200, Kostya wrote: On Fri, Apr 01, 2011 at 09:30:17AM +0200, Anton Khirnov wrote: From: Kostya Shishkov kostya.shish...@gmail.com fixes issue2480 Signed-off-by: Anton Khirnov an...@khirnov.net --- libavformat/ape.c |5 + 1 files

[libav-devel] [PATCH] avio: document avio_alloc_context.

2011-04-01 Thread Anton Khirnov
--- Sorry for the noise, forgot to commit before sending :) --- libavformat/avio.h | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/libavformat/avio.h b/libavformat/avio.h index 12fa2d5..ca73769 100644 --- a/libavformat/avio.h +++ b/libavformat/avio.h @@ -458,6

[libav-devel] [PATCH] avio: introduce an AVIOContext.seekable field

2011-04-01 Thread Anton Khirnov
Use it instead of url_is_streamed and AVIOContext.is_streamed. --- ffserver.c |8 libavformat/aiffdec.c |2 +- libavformat/aiffenc.c |2 +- libavformat/ape.c |2 +- libavformat/asfenc.c |4 ++-- libavformat/au.c |

Re: [libav-devel] [PATCH] avio: document avio_alloc_context.

2011-04-01 Thread Anton Khirnov
On Fri, Apr 01, 2011 at 10:58:03AM -0700, Ronald S. Bultje wrote: Hi, On Fri, Apr 1, 2011 at 10:53 AM, Anton Khirnov an...@khirnov.net wrote: ---  libavformat/avio.h |   16  1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/libavformat/avio.h b

Re: [libav-devel] [PATCH] lavf: make compute_chapters_end less picky.

2011-04-01 Thread Anton Khirnov
On Fri, Apr 01, 2011 at 09:56:27AM +0200, Kostya wrote: On Fri, Apr 01, 2011 at 03:17:46AM +0200, Anton Khirnov wrote: In particular, now it assumes that a) chapters are chronologically ordered b) chapters have the same timebases c) duration of the stream is known and asserts if any

[libav-devel] [PATCH 2/4] lavc: add missing audioconvert includes

2011-04-02 Thread Anton Khirnov
--- libavcodec/mlp_parser.c |1 + libavcodec/mpegaudiodec.c |1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/libavcodec/mlp_parser.c b/libavcodec/mlp_parser.c index 9ba3c53..e85eb72 100644 --- a/libavcodec/mlp_parser.c +++ b/libavcodec/mlp_parser.c @@ -27,6 +27,7 @@

[libav-devel] [PATCH 1/4] jvdec: don't use deprecated CODEC_TYPE_*/PKT_FLAG_KEY

2011-04-02 Thread Anton Khirnov
--- libavcodec/jvdec.c |2 +- libavformat/jvdec.c |8 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libavcodec/jvdec.c b/libavcodec/jvdec.c index 0da1142..8f19ba3 100644 --- a/libavcodec/jvdec.c +++ b/libavcodec/jvdec.c @@ -205,7 +205,7 @@ static av_cold int

[libav-devel] [PATCH 4/4] lavc: mark hurry_up for removal on next major bump

2011-04-02 Thread Anton Khirnov
It has been deprecated for about five years, skip_idct/skip_frame should be used instead. --- libavcodec/avcodec.h |4 +++- libavcodec/h261dec.c |4 +++- libavcodec/h263dec.c |6 +- libavcodec/h264.c | 22 ++ libavcodec/mpeg12.c|4

[libav-devel] [PATCH] lavc: move lpc_coeff_precision to private flacenc options.

2011-04-02 Thread Anton Khirnov
--- libavcodec/avcodec.h |6 +- libavcodec/flacenc.c | 21 ++--- libavcodec/version.h |3 +++ 3 files changed, 26 insertions(+), 4 deletions(-) diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 2122545..984c2d3 100644 --- a/libavcodec/avcodec.h +++

[libav-devel] [PATCH] lavc: deprecate rate_emu

2011-04-02 Thread Anton Khirnov
It's not used anywhere and apparrently hasn't been for a very long time. --- libavcodec/avcodec.h |4 +++- libavcodec/options.c |2 ++ libavcodec/version.h |3 +++ 3 files changed, 8 insertions(+), 1 deletions(-) diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index

[libav-devel] [PATCH] lavc: move some x264-specific options to its private context.

2011-04-02 Thread Anton Khirnov
Bump required x264 version, because X264_WEIGHTP_BLIND was renamed to X264_WEIGHTP_SIMPLE in version 110. --- libavcodec/libx264.c | 69 - libavcodec/options.c | 20 +- libavcodec/version.h |3 ++ 3 files changed, 78

[libav-devel] [PATCH] lavc: move some x264-specific options to its private context.

2011-04-02 Thread Anton Khirnov
Bump required x264 version, because X264_WEIGHTP_BLIND was renamed to X264_WEIGHTP_SIMPLE in version 110. --- Sorry for the noise, forgot to commit some hunks in the first patch. --- configure|4 +- libavcodec/avcodec.h | 16 ++- libavcodec/libx264.c | 69

Re: [libav-devel] [PATCH 1/4] jvdec: don't use deprecated CODEC_TYPE_*/PKT_FLAG_KEY

2011-04-02 Thread Anton Khirnov
All 4 pushed. -- Anton Khirnov signature.asc Description: Digital signature ___ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel

[libav-devel] [PATCH 2/2] lavc: deprecate AVCodecContext.antialias_algo

2011-04-02 Thread Anton Khirnov
It's been unused since mp3float decoder was added. --- libavcodec/avcodec.h |5 - libavcodec/options.c |2 ++ libavcodec/version.h |3 +++ 3 files changed, 9 insertions(+), 1 deletions(-) diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 98206d5..1f32592 100644 ---

[libav-devel] [PATCH] lavc: move some flac-specific options to its private context.

2011-04-02 Thread Anton Khirnov
--- libavcodec/avcodec.h | 29 ++ libavcodec/flacenc.c | 104 +++-- libavcodec/options.c | 18 +--- libavcodec/version.h |3 + 4 files changed, 126 insertions(+), 28 deletions(-) diff --git a/libavcodec/avcodec.h

[libav-devel] [PATCH] lavc: move some flac-specific options to its private context.

2011-04-02 Thread Anton Khirnov
--- Found some more flac-specific options. --- libavcodec/avcodec.h | 29 ++ libavcodec/flacenc.c | 104 +++-- libavcodec/options.c | 20 ++ libavcodec/version.h |3 + 4 files changed, 127 insertions(+), 29 deletions(-)

Re: [libav-devel] [PATCH 09/10] Change yadif to not use out of picture lines.

2011-04-03 Thread Anton Khirnov
On Sat, Apr 02, 2011 at 10:50:48PM -0700, Alex Converse wrote: On Tue, Mar 22, 2011 at 10:31 PM, Anton Khirnov an...@khirnov.net wrote: From: Michael Niedermayer michae...@gmx.at Fixes issue2272. Signed-off-by: Michael Niedermayer michae...@gmx.at ---  libavfilter/vf_yadif.c

Re: [libav-devel] [PATCH 01/10] lavfi: add fade filter

2011-04-03 Thread Anton Khirnov
On Sat, Apr 02, 2011 at 10:47:52PM -0700, Alex Converse wrote: On Tue, Mar 22, 2011 at 10:30 PM, Anton Khirnov an...@khirnov.net wrote: From: Brandon Mintern bmint...@gmail.com Port fade filter from libavfilter soc repo, with minor fixes by Stefano. Signed-off-by: Michael Niedermayer

Re: [libav-devel] [PATCH 2/2] lavc: deprecate AVCodecContext.antialias_algo

2011-04-03 Thread Anton Khirnov
On Sat, Apr 02, 2011 at 02:00:07PM -0700, Ronald S. Bultje wrote: Hi, On Sat, Apr 2, 2011 at 7:37 AM, Anton Khirnov an...@khirnov.net wrote: It's been unused since mp3float decoder was added. ---  libavcodec/avcodec.h |    5 -  libavcodec/options.c |    2 ++  libavcodec/version.h

Re: [libav-devel] [PATCH] avio cleanup half-way there

2011-04-03 Thread Anton Khirnov
On Thu, Mar 17, 2011 at 02:03:26PM +0100, Anton Khirnov wrote: Hi, with the following patches everything the buffered part of avio cleanup is completed. Please comment/commit so I can start with the unbuffered part. Everything has been pushed, the buffered API cleanup is now complete

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

2011-04-03 Thread Anton Khirnov
On Sun, Apr 03, 2011 at 02:45:38PM -0700, Ronald S. Bultje wrote: Hi, 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

Re: [libav-devel] [PATCH 02/15] avio: deprecate url_open_protocol

2011-04-04 Thread Anton Khirnov
On Sun, Apr 03, 2011 at 02:36:46PM -0700, Ronald S. Bultje wrote: Hi, On Thu, Mar 31, 2011 at 9:14 AM, Anton Khirnov an...@khirnov.net wrote: The unbuffered API will be made private and it's not used anywhere internally. ---  libavformat/avio.c |    2 ++  libavformat/avio.h |   22

[libav-devel] [PATCH] avio: make url_filesize() internal.

2011-04-04 Thread Anton Khirnov
--- libavformat/avio.c |6 +- libavformat/avio.h |8 +--- libavformat/concat.c |2 +- libavformat/url.h|7 +++ 4 files changed, 14 insertions(+), 9 deletions(-) diff --git a/libavformat/avio.c b/libavformat/avio.c index b372ee3..76d3d4d 100644 ---

[libav-devel] [PATCH] avio: add a function for iterating though protocol names.

2011-04-04 Thread Anton Khirnov
--- libavformat/avio.c |6 ++ libavformat/avio.h | 11 +++ 2 files changed, 17 insertions(+), 0 deletions(-) diff --git a/libavformat/avio.c b/libavformat/avio.c index 24cec8f..bee878c 100644 --- a/libavformat/avio.c +++ b/libavformat/avio.c @@ -57,6 +57,12 @@ URLProtocol

Re: [libav-devel] [PATCH] avio: add a function for iterating though protocol names.

2011-04-04 Thread Anton Khirnov
Lesson learned: don't program while half-asleep. And now something that actually works :) -- Anton Khirnov From debd62be08d0140832a849490e74b6273c850391 Mon Sep 17 00:00:00 2001 From: Anton Khirnov an...@khirnov.net Date: Mon, 4 Apr 2011 08:18:54 +0200 Subject: [PATCH] avio: add a function

Re: [libav-devel] [PATCH] Avio cleanup II

2011-04-04 Thread Anton Khirnov
All pushed. Even if some of those end up public, current names are still unacceptable. -- Anton Khirnov signature.asc Description: Digital signature ___ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav

Re: [libav-devel] [PATCH] Avio cleanup II

2011-04-04 Thread Anton Khirnov
On Mon, Apr 04, 2011 at 05:50:34PM +0200, aviad rozenhek wrote: On Mon, Apr 4, 2011 at 16:56, Anton Khirnov an...@khirnov.net wrote: On Mon, Apr 04, 2011 at 02:38:12PM +, Ronald S. Bultje wrote: That said, I'm open to ideas how to expose the functionality you need (preferably

Re: [libav-devel] [PATCH] avio: add a function for iterating though protocol names.

2011-04-04 Thread Anton Khirnov
On Mon, Apr 04, 2011 at 03:06:48PM +, Ronald S. Bultje wrote: Hi, On Mon, Apr 4, 2011 at 11:01 AM, Anton Khirnov an...@khirnov.net wrote: Lesson learned: don't program while half-asleep. And now something that actually works :) [..] +const char *avio_enum_protocols(void **opaque

[libav-devel] [PATCH 1/9] avio: add a function for iterating though protocol names.

2011-04-04 Thread Anton Khirnov
--- libavformat/avio.c |7 +++ libavformat/avio.h | 11 +++ 2 files changed, 18 insertions(+), 0 deletions(-) diff --git a/libavformat/avio.c b/libavformat/avio.c index 24cec8f..100a04a 100644 --- a/libavformat/avio.c +++ b/libavformat/avio.c @@ -57,6 +57,13 @@ URLProtocol

[libav-devel] [PATCH 5/9] avio: AVIO_ prefixes for URL_ open flags.

2011-04-04 Thread Anton Khirnov
--- libavformat/applehttp.c |4 ++-- libavformat/applehttpproto.c |6 +++--- libavformat/avio.c | 12 ++-- libavformat/avio.h | 29 - libavformat/aviobuf.c| 14 +++--- libavformat/img2.c |4

[libav-devel] [PATCH 9/9] avio: move extern url_interrupt_cb declaration from avio.h to url.h

2011-04-04 Thread Anton Khirnov
--- libavformat/applehttp.c |1 + libavformat/avio.h |2 +- libavformat/tcp.c |1 + libavformat/udp.c |1 + libavformat/url.h |2 ++ libavformat/utils.c |1 + 6 files changed, 7 insertions(+), 1 deletions(-) diff --git a/libavformat/applehttp.c

[libav-devel] [PATCH 3/9] avio: deprecate av_url_read_seek

2011-04-04 Thread Anton Khirnov
It's not used anywhere internally. Salvage its documentation for ffio_read_seek. --- libavformat/avio.c |2 +- libavformat/avio.h | 21 ++--- libavformat/avio_internal.h | 17 + 3 files changed, 20 insertions(+), 20 deletions(-) diff

[libav-devel] [PATCH 7/9] avio: deprecate av_protocol_next().

2011-04-04 Thread Anton Khirnov
--- cmdutils.c | 20 ++-- libavformat/avio.c |2 ++ libavformat/avio.h |4 +++- 3 files changed, 11 insertions(+), 15 deletions(-) diff --git a/cmdutils.c b/cmdutils.c index 6901f56..bae0514 100644 --- a/cmdutils.c +++ b/cmdutils.c @@ -653,20 +653,12 @@ void

[libav-devel] [PATCH 4/9] avio: make URL_PROTOCOL_FLAG_NESTED_SCHEME internal

2011-04-04 Thread Anton Khirnov
--- libavformat/avio.h |2 +- libavformat/url.h |5 + 2 files changed, 6 insertions(+), 1 deletions(-) diff --git a/libavformat/avio.h b/libavformat/avio.h index 82d43d4..409e3b8 100644 --- a/libavformat/avio.h +++ b/libavformat/avio.h @@ -136,10 +136,10 @@ void

[libav-devel] [PATCH 6/9] avio: avio_ prefix for url_set_interrupt_cb.

2011-04-04 Thread Anton Khirnov
--- ffmpeg.c |4 ++-- ffplay.c |4 ++-- libavformat/avio.c |6 +- libavformat/avio.h |3 ++- 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/ffmpeg.c b/ffmpeg.c index 5e50db3..fced345 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -2443,7 +2443,7

[libav-devel] [PATCH 8/9] avio: make av_register_protocol2 internal.

2011-04-04 Thread Anton Khirnov
--- libavformat/allformats.c |3 ++- libavformat/avio.c | 10 +++--- libavformat/avio.h |4 +++- libavformat/url.h|7 +++ 4 files changed, 19 insertions(+), 5 deletions(-) diff --git a/libavformat/allformats.c b/libavformat/allformats.c index

[libav-devel] [PATCH] matroskaenc: don't write an empty Cues element.

2011-04-04 Thread Anton Khirnov
--- libavformat/matroskaenc.c |9 ++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index e28ac42..c0427f9 100644 --- a/libavformat/matroskaenc.c +++ b/libavformat/matroskaenc.c @@ -1140,10 +1140,13 @@ static int

Re: [libav-devel] [PATCH 7/9] avio: deprecate av_protocol_next().

2011-04-04 Thread Anton Khirnov
On Mon, Apr 04, 2011 at 11:21:51PM +0200, Stefano Sabatini wrote: On date Monday 2011-04-04 20:43:50 +0200, Anton Khirnov wrote: --- cmdutils.c | 20 ++-- libavformat/avio.c |2 ++ libavformat/avio.h |4 +++- 3 files changed, 11 insertions(+), 15

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

2011-04-05 Thread Anton Khirnov
, size, 0); +return ret 0 ? ff_neterrno() : ret; As discussed on IRC, this changes behavior, so should be in a separate patch. Or at least it deserves a comment in the commit message. } + Also unrelated. -- Anton Khirnov signature.asc Description: Digital signature

Re: [libav-devel] [PATCH] configure: tell user if libva is enabled like the rest of external libs.

2011-04-05 Thread Anton Khirnov
${libvorbis-no} echo libvpx enabled${libvpx-no} echo libx264 enabled ${libx264-no} Looks fine. Pushed. -- Anton Khirnov signature.asc Description: Digital signature ___ libav-devel mailing list libav-devel

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

2011-04-05 Thread Anton Khirnov
100644 --- a/libavformat/network.h +++ b/libavformat/network.h @@ -55,6 +55,10 @@ static inline int ff_neterrno() { #include arpa/inet.h #endif +#if HAVE_POLL_H +#include poll.h +#endif Maybe now you can remove the poll.h #include from tcp.c and udp.c. Looks fine otherwise. -- Anton

Re: [libav-devel] Towards a 0.7 Release

2011-04-05 Thread Anton Khirnov
On Tue, Apr 05, 2011 at 07:31:39PM +0200, Anton Khirnov wrote: On Sun, Apr 03, 2011 at 08:05:13PM +0200, Reinhard Tartler wrote: Hi, Now with FATE being very green these days, we should look more closely into doing another release soon. Currently, I see the following release goals

Re: [libav-devel] [PATCH] matroskaenc: don't write an empty Cues element.

2011-04-05 Thread Anton Khirnov
On Mon, Apr 04, 2011 at 09:38:32PM +0100, Måns Rullgård wrote: Anton Khirnov an...@khirnov.net writes: --- libavformat/matroskaenc.c |9 ++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index e28ac42

[libav-devel] [PATCH 4/9] lavc: add a FF_API_REQUEST_CHANNELS deprecation macro

2011-04-06 Thread Anton Khirnov
And hide request_channels AVOption under it. --- libavcodec/avcodec.h |2 +- libavcodec/options.c |2 ++ libavcodec/version.h |3 +++ 3 files changed, 6 insertions(+), 1 deletions(-) diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 95a933d..7eb8b52 100644 ---

[libav-devel] [PATCH 3/9] lavc: postpone removal of audioconvert and sample_fmt wrappers

2011-04-06 Thread Anton Khirnov
Those were moved to libavutil only recently. --- libavcodec/version.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/version.h b/libavcodec/version.h index b93e753..0e0f915 100644 --- a/libavcodec/version.h +++ b/libavcodec/version.h @@ -66,10 +66,10 @@

[libav-devel] [PATCH 5/9] lavc: postpone removal of request_channels

2011-04-06 Thread Anton Khirnov
No decoder uses the supposed replacement, request_channel_layout, yet. --- libavcodec/version.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavcodec/version.h b/libavcodec/version.h index 70a9f44..c87bd78 100644 --- a/libavcodec/version.h +++ b/libavcodec/version.h

[libav-devel] [PATCH 2/9] lavf: postpone removal of deprecated avio functions

2011-04-06 Thread Anton Khirnov
They've been deprecated very recently. --- libavformat/version.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavformat/version.h b/libavformat/version.h index 1d25bfd..c5f3223 100644 --- a/libavformat/version.h +++ b/libavformat/version.h @@ -90,7 +90,7 @@ #define

[libav-devel] [PATCH] mmst: get rid of deprecated AVERRORs

2011-04-06 Thread Anton Khirnov
--- Now that i think about it, EINVAL is better suited here than EILSEQ. --- libavformat/mmst.c | 14 +++--- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/libavformat/mmst.c b/libavformat/mmst.c index cba65e2..a977858 100644 --- a/libavformat/mmst.c +++

Re: [libav-devel] [PATCH] Make tcp proto able to listen

2011-04-06 Thread Anton Khirnov
? We might move all the protocol options as AVOption in a single patch later. I think handling AVOptions API-wise needs to be reworked significantly, we can do this then. -- Anton Khirnov signature.asc Description: Digital signature ___ libav

[libav-devel] [PATCH] Port drawtext filter by Hemanth from the libavfilter soc repo

2011-04-06 Thread Anton Khirnov
From: Stefano Sabatini stefano.sabatini-l...@poste.it With the following additions: * support to anti-aliased glyph rendering * support to UTF-8 text and Unicode chars rendering * support for RGB packed formats * fix minor errors and typos in the filter description * extend/clarify examples in

Re: [libav-devel] [PATCH 1/2] lavf: update AVStream.nb_frames when muxing.

2011-04-07 Thread Anton Khirnov
On Wed, Apr 06, 2011 at 05:33:32PM -0400, Ronald S. Bultje wrote: Hi, On Tue, Mar 29, 2011 at 1:38 PM, Anton Khirnov an...@khirnov.net wrote: On Tue, Mar 29, 2011 at 10:09:35AM -0700, Ronald S. Bultje wrote: Hi, On Tue, Mar 29, 2011 at 9:55 AM, Anton Khirnov an...@khirnov.net wrote

[libav-devel] [PATCH 2/2] avio: deprecate av_protocol_next().

2011-04-07 Thread Anton Khirnov
--- cmdutils.c | 20 libavformat/avio.c |2 ++ libavformat/avio.h |4 +++- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/cmdutils.c b/cmdutils.c index 6901f56..cc10b48 100644 --- a/cmdutils.c +++ b/cmdutils.c @@ -653,20 +653,16 @@ void

[libav-devel] [PATCH 1/2] avio: add a function for iterating though protocol names.

2011-04-07 Thread Anton Khirnov
--- libavformat/avio.c | 10 ++ libavformat/avio.h | 13 + 2 files changed, 23 insertions(+), 0 deletions(-) diff --git a/libavformat/avio.c b/libavformat/avio.c index 1d40da6..0ea66b3 100644 --- a/libavformat/avio.c +++ b/libavformat/avio.c @@ -57,6 +57,16 @@ URLProtocol

[libav-devel] [PATCH] Last bits of avio cleanup

2011-04-07 Thread Anton Khirnov
Hi, with those patches, the avio cleanup is finally complete. I'm not very sure about url_exist. It's used in ffmpeg, ffserver and img2, but there were some problems with it [1]. There were patches from Stefano adding a replacement [2] [3] [4], but they didn't get much attention. Maybe we could

[libav-devel] [PATCH 1/6] avio: deprecate the typedef for URLInterruptCB

2011-04-07 Thread Anton Khirnov
There's no particular reason to pollute the namespace with a typedef for it. --- libavformat/avio.c |4 ++-- libavformat/avio.h |6 ++ libavformat/url.h |2 +- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/libavformat/avio.c b/libavformat/avio.c index

[libav-devel] [PATCH 4/6] avio: move two ff_udp_* functions from avio_internal to url.h

2011-04-07 Thread Anton Khirnov
--- libavformat/avio_internal.h |4 libavformat/url.h |4 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libavformat/avio_internal.h b/libavformat/avio_internal.h index 5ef4cca..2879ee1 100644 --- a/libavformat/avio_internal.h +++

[libav-devel] [PATCH 2/6] avio: avio_ prefix for url_exist().

2011-04-07 Thread Anton Khirnov
--- ffmpeg.c |2 +- ffserver.c |4 ++-- libavformat/avio.c |6 +- libavformat/avio.h |3 ++- libavformat/img2.c |6 +++--- 5 files changed, 13 insertions(+), 8 deletions(-) diff --git a/ffmpeg.c b/ffmpeg.c index 83e77dd..d7d1764 100644 --- a/ffmpeg.c +++

Re: [libav-devel] [rfc] Protocol API

2011-04-07 Thread Anton Khirnov
a muxer/demuxer library, protocols aren't its main focus. Of course it all depends on demand for such a thing, so who wants direct access to protocols, please speak up now. -- Anton Khirnov signature.asc Description: Digital signature ___ libav-devel

Re: [libav-devel] [PATCH 2/6] avio: avio_ prefix for url_exist().

2011-04-07 Thread Anton Khirnov
On Thu, Apr 07, 2011 at 04:34:39PM -0400, Ronald S. Bultje wrote: Hi, On Thu, Apr 7, 2011 at 3:16 PM, Anton Khirnov an...@khirnov.net wrote: ---  ffmpeg.c           |    2 +-  ffserver.c         |    4 ++--  libavformat/avio.c |    6 +-  libavformat/avio.h |    3

Re: [libav-devel] [PATCH 2/6] avio: avio_ prefix for url_exist().

2011-04-07 Thread Anton Khirnov
On Thu, Apr 07, 2011 at 09:50:28PM -0400, Ronald S. Bultje wrote: Hi, On Thu, Apr 7, 2011 at 4:40 PM, Anton Khirnov an...@khirnov.net wrote: On Thu, Apr 07, 2011 at 04:34:39PM -0400, Ronald S. Bultje wrote: On Thu, Apr 7, 2011 at 3:16 PM, Anton Khirnov an...@khirnov.net wrote

[libav-devel] [PATCH 2/2] avio: make URLProtocol internal.

2011-04-07 Thread Anton Khirnov
--- libavformat/avio.h |6 +- libavformat/url.h | 17 + 2 files changed, 22 insertions(+), 1 deletions(-) diff --git a/libavformat/avio.h b/libavformat/avio.h index 0a82f95..18e3edd 100644 --- a/libavformat/avio.h +++ b/libavformat/avio.h @@ -140,8 +140,11 @@

[libav-devel] [PATCH] lavf: use designated initializers for all protocols

2011-04-07 Thread Anton Khirnov
This is more readable and makes it easier to reorder URLProtocol members. --- libavformat/applehttpproto.c | 12 ++--- libavformat/concat.c | 11 ++--- libavformat/file.c | 20 +- libavformat/gopher.c | 11 ++--- libavformat/http.c | 16

[libav-devel] [PATCH] minor avformat.h cleanup

2011-04-08 Thread Anton Khirnov
Hi, with the following patches, avformat.h should be reasonably clean for the upcoming bump. Further cleanup suggestions welcome. -- Anton Khirnov ___ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel

[libav-devel] [PATCH 2/5] lavf: make av_guess_image2_codec internal

2011-04-08 Thread Anton Khirnov
It doesn't look very useful as a public function. --- libavformat/avformat.h |4 +++- libavformat/img2.c |8 libavformat/internal.h |2 ++ libavformat/utils.c|4 ++-- libavformat/version.h |3 +++ 5 files changed, 18 insertions(+), 3 deletions(-) diff --git

[libav-devel] [PATCH 1/5] lavf: mark av_pkt_dump(_log) for remove on $next+1 bump.

2011-04-08 Thread Anton Khirnov
--- libavformat/avformat.h |4 +++- libavformat/utils.c|4 libavformat/version.h |3 +++ 3 files changed, 10 insertions(+), 1 deletions(-) diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 61babdc..6b1b2b4 100644 --- a/libavformat/avformat.h +++

[libav-devel] [PATCH 4/5] lavf: rename avf_sdp_create to av_sdp_create.

2011-04-08 Thread Anton Khirnov
The new name is more consistent with the rest of the API. Also rename its parameter from buff-buf, which is also more consistent. --- ffmpeg.c |2 +- ffserver.c |2 +- libavformat/avformat.h | 10 +++--- libavformat/rtspenc.c |2 +-

[libav-devel] [PATCH 5/5] lavf: bump minor and add an APIChanges entry for avformat cleanup

2011-04-08 Thread Anton Khirnov
--- doc/APIchanges|5 + libavformat/version.h |2 +- 2 files changed, 6 insertions(+), 1 deletions(-) diff --git a/doc/APIchanges b/doc/APIchanges index 6f69e05..105c1f3 100644 --- a/doc/APIchanges +++ b/doc/APIchanges @@ -12,6 +12,11 @@ libavutil: 2009-03-08 API

[libav-devel] [PATCH 3/5] lavf: get rid of ffm-specific stuff in avformat.h

2011-04-08 Thread Anton Khirnov
--- ffmpeg.c |2 ++ ffserver.c |1 + libavformat/avformat.h |6 -- libavformat/ffm.h |5 + 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/ffmpeg.c b/ffmpeg.c index 83e77dd..749c9c7 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@

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

2011-04-08 Thread Anton Khirnov
The new name is more consistent with the rest of the API. --- ffmpeg.c |2 +- ffserver.c |2 +- libavformat/avformat.h |6 +- libavformat/rtspenc.c |2 +- libavformat/sapenc.c |2 +- libavformat/sdp.c | 11 +--

[libav-devel] [PATCH 2/2] lavf: rename a parameter of av_sdp_create from buff-buf

2011-04-08 Thread Anton Khirnov
This is more consistent with the rest of the API. --- libavformat/avformat.h |6 +++--- libavformat/sdp.c | 12 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 42020de..5c8456f 100644 ---

  1   2   3   4   5   6   7   8   9   10   >