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

Benoit Fouet benoit.fouet
Mon Feb 5 17:49:30 CET 2007


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

Ben





More information about the ffmpeg-devel mailing list