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

Víctor Paesa wzrlpy
Fri Apr 6 22:23:11 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 ?

OK, here it is:

Regards,
V?ctor
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg.doc.amr-rates.2.diff
Type: application/octet-stream
Size: 1895 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070406/cf4660a6/attachment.obj>



More information about the ffmpeg-devel mailing list