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

2011-04-20 Thread Anton Khirnov
On Wed, 20 Apr 2011 20:47:11 +0300 (EEST), Martin Storsjö wrote: > On Wed, 20 Apr 2011, Ronald S. Bultje wrote: > > > On Wed, Apr 20, 2011 at 9:44 AM, Martin Storsjö wrote: > > > To add more to the explanation - currently, the info about which AVStream > > > belongs to which variant stream actu

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ö 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 value says

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

2011-04-20 Thread Ronald S. Bultje
Hi, On Wed, Apr 20, 2011 at 9:44 AM, Martin Storsjö 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 value says which variant it is a part of - all > AVStreams w

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ö wrote: > > > On Wed, 20 Apr 2011, Ronald S. Bultje wrote: > > >> On Wed, Apr 20, 2011 at 7:49 AM, Martin Storsjö wrote: > > >> > This help

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 8:05 AM, Martin Storsjö wrote: > > On Wed, 20 Apr 2011, Ronald S. Bultje wrote: > >> On Wed, Apr 20, 2011 at 7:49 AM, Martin Storsjö wrote: > >> > This helps callers to intelligently switch between bitrate > >> > var

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

2011-04-20 Thread Ronald S. Bultje
Hi, On Wed, Apr 20, 2011 at 8:05 AM, Martin Storsjö wrote: > On Wed, 20 Apr 2011, Ronald S. Bultje wrote: >> On Wed, Apr 20, 2011 at 7:49 AM, Martin Storsjö wrote: >> > This helps callers to intelligently switch between bitrate >> > variants. >> > --- >> >  libavformat/applehttp.c |    3 +++ >>

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ö wrote: > > This helps callers to intelligently switch between bitrate > > variants. > > --- > >  libavformat/applehttp.c |    3 +++ > >  1 files changed, 3 insertions(+), 0 deletions(-) > > Do

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

2011-04-20 Thread Ronald S. Bultje
Hi, On Wed, Apr 20, 2011 at 7:49 AM, Martin Storsjö wrote: > This helps callers to intelligently switch between bitrate > variants. > --- >  libavformat/applehttp.c |    3 +++ >  1 files changed, 3 insertions(+), 0 deletions(-) Doesn't AVCodecContext have a bit_rate integer for this purpose? Ro

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

2011-04-20 Thread Martin Storsjö
This helps callers to intelligently switch between bitrate variants. --- libavformat/applehttp.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/libavformat/applehttp.c b/libavformat/applehttp.c index df4494a..ac680f4 100644 --- a/libavformat/applehttp.c +++ b/libavforma