[Ffmpeg-devel] [PATCH] hint right bitrates for amr if wrong one given
Michael Niedermayer
michaelni
Fri Apr 6 02:12:57 CEST 2007
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 ?
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Those who are too smart to engage in politics are punished by being
governed by those who are dumber. -- Plato
-------------- 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/558c2f3b/attachment.pgp>
More information about the ffmpeg-devel
mailing list