[FFmpeg-devel] [PATCH] Fixing NB AMR SID frame sizes.

Baptiste Coudurier baptiste.coudurier
Thu Feb 26 20:08:39 CET 2009


Hi,

On 2/26/2009 4:47 AM, Haim Alon wrote:
> Hi,
> 
> This patch sets the proper SID frame sizes for NB AMR.
> Regards,
> Haim.
> 
> 
> ------------------------------------------------------------------------
> 
> Index: libavformat/movenc.c
> ===================================================================
> --- libavformat/movenc.c	(revision 17607)
> +++ libavformat/movenc.c	(working copy)
> @@ -1721,7 +1721,7 @@
>      if (enc->codec_id == CODEC_ID_AMR_NB) {
>          /* We must find out how many AMR blocks there are in one packet */
>          static uint16_t packed_size[16] =
> -            {13, 14, 16, 18, 20, 21, 27, 32, 6, 0, 0, 0, 0, 0, 0, 0};
> +            {13, 14, 16, 18, 20, 21, 27, 32, 6, 7, 6, 6, 1, 1, 1, 1};
>          int len = 0;
>  
>          while (len < size && samplesInChunk < 100) {

Can you please quote specs regarding this ?

Also an AMR-NB parser, to split packed frames, would be welcome.

-- 
Baptiste COUDURIER                              GnuPG Key Id: 0x5C1ABAAA
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
checking for life_signs in -lkenny... no
FFmpeg maintainer                                  http://www.ffmpeg.org




More information about the ffmpeg-devel mailing list