[FFmpeg-devel] [PATCH] ffprobe: report audio bit rate in stream description

Michael Niedermayer michaelni at gmx.at
Tue Feb 7 21:55:03 CET 2012


On Tue, Feb 07, 2012 at 05:52:24PM +0100, Stefano Sabatini wrote:
> On date Tuesday 2012-02-07 10:44:22 +0100, Matthieu Bouron encoded:
> > 2012/2/6 Clément Bœsch <ubitux at gmail.com>:
> [...]
> > From ab616ceea409f623b3d0c16bef714bba8036b96c Mon Sep 17 00:00:00 2001
> > From: Matthieu Bouron <matthieu.bouron at smartjog.com>
> > Date: Mon, 6 Feb 2012 17:07:18 +0100
> > Subject: [PATCH 1/2] libavcodec: add avcodec_get_bit_rate function
> > 
> > ---
> >  libavcodec/avcodec.h |    8 ++++++++
> >  libavcodec/utils.c   |    4 ++--
> >  libavcodec/version.h |    4 ++--
> >  3 files changed, 12 insertions(+), 4 deletions(-)
> > 
> > diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
> > index 43c2128..bdd36b2 100644
> > --- a/libavcodec/avcodec.h
> > +++ b/libavcodec/avcodec.h
> > @@ -3512,6 +3512,14 @@ AVCodec *avcodec_find_decoder_by_name(const char *name);
> >  void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode);
> >  
> >  /**
> > + * Return the codec average bit rate
> 
> nit: missing dot
> 
> > + *
> > + * @param codec the codec context
> 
> > + * @return the codec average bit rate
> 
> What happens if the information is not available in the codec? (I
> suppose it will return 0 in this case, so you may need to extend the
> docs for that or the user will get surprised).
> 
> Looks fine otherwise, but I'd like to hear the opinion from Michael
> about this new interface.

iam fine with teh interface, though i think the bit_rate field itself
should be set correctly when its not currently

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Many things microsoft did are stupid, but not doing something just because
microsoft did it is even more stupid. If everything ms did were stupid they
would be bankrupt already.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120207/e3f34d73/attachment.asc>


More information about the ffmpeg-devel mailing list