[Ffmpeg-devel] [PATCH] access all bitrates for amr nb encoding

Michael Niedermayer michaelni
Mon Feb 5 19:29:55 CET 2007


Hi

On Mon, Feb 05, 2007 at 05:49:30PM +0100, Benoit Fouet wrote:
> I wrote:
> > Index: ffmpeg.c
> > ===================================================================
> > --- ffmpeg.c	(revision 7821)
> > +++ ffmpeg.c	(working copy)
> > @@ -2340,7 +2340,7 @@
> >  
> >  static void opt_audio_bitrate(const char *arg)
> >  {
> > -    audio_bit_rate = atoi(arg) * 1000;
> > +    audio_bit_rate = atoi(arg) * tolower(arg[strlen(arg)-1]) == 'k' ? 1000 : 1;
> >   
> oups... this is wrong
> must be audio_bit_rate = atoi(arg) * (tolower(arg[strlen(arg)-1]) == 'k'
> ? 1000 : 1);
> sorry for the noise

all wrong the whole funtion and audio_bit_rate must be removed from ffmpeg.c
see svn log about the similar change done with the video bitrate

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

The educated differ from the uneducated as much as the living from the
dead. -- Aristotle 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070205/79c72d5e/attachment.pgp>



More information about the ffmpeg-devel mailing list