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

Michael Niedermayer michaelni
Fri Apr 6 22:29:39 CEST 2007


Hi

On Fri, Apr 06, 2007 at 10:23:11PM +0200, V?ctor Paesa wrote:
> Hi,
> 
> > On Fri, Apr 06, 2007 at 01:43:48AM +0200, V?ctor Paesa wrote:
> >> Hi,
> >>
> >> The attached patch provides a list of the valid AMR bitrates as
> >> part of the error message if a wrong one is used.
> >>
> >> Regards,
> >> V?ctor
> >> Index: ffmpeg/libavcodec/amr.c
> >> ==================================================================> ---
> >> 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

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

Democracy is the form of government in which you can choose your dictator
-------------- 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/20070406/e1bc4926/attachment.pgp>



More information about the ffmpeg-devel mailing list