[Ffmpeg-devel] [PATCH] hint right bitrates for amr if wrong onegiven

Diego Biurrun diego
Sat Apr 7 13:57:55 CEST 2007


On Fri, Apr 06, 2007 at 10:29:39PM +0200, Michael Niedermayer wrote:
> 
> On Fri, Apr 06, 2007 at 10:23:11PM +0200, V?ctor Paesa wrote:
> > 
> > > On Fri, Apr 06, 2007 at 01:43:48AM +0200, V?ctor Paesa wrote:
> > >>
> > >> The attached patch provides a list of the valid AMR bitrates as
> > >> part of the error message if a wrong one is used.
> > >>
> > >> ffmpeg/libavcodec/amr.c	(revision 8629)
> > >> +++ ffmpeg/libavcodec/amr.c	(working copy)
> > >> @@ -86,6 +86,9 @@
> > >>  #include "amr_float/interf_enc.h"
> > >>  #endif
> > >>
> > >> +#define NB_BITRATE_UNSUPPORTED "bitrate not supported: use one of
> > >> 4.75k, 5.15k, 5.9k, 6.7k, 7.4k, 7.95k, 10.2k or 12.2k\n"
> > >> +#define WB_BITRATE_UNSUPPORTED "bitrate not supported: use one of 6.6k,
> > >> 8.85k, 12.65k, 14.25k, 15.85k, 18.25k, 19.85k, 23.05k, or 23.85k\n"
> > >
> > > why not static const char ?
> > 
> > OK, here it is:
> 
> ok

Applied.

Diego




More information about the ffmpeg-devel mailing list