Ethereal-dev: Re: [Ethereal-dev] [PATCH] update iax2 decoder

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxx>
Date: Sat, 15 May 2004 14:26:41 -0700
On Fri, May 14, 2004 at 04:54:49PM -0400, James H. Cloos Jr. wrote:
> This patch fixes the iax2 decoder to match what * currently uses for
> audio and video codecs.

Checked in...

> diff -uNr a/packet-iax2.h b/packet-iax2.h
> --- a/packet-iax2.h	2004-01-26 20:35:25.000000000 -0500
> +++ b/packet-iax2.h	2004-05-14 16:44:42.000000000 -0400
> @@ -131,9 +131,16 @@
>  #define AST_FORMAT_ULAW     (1 << 2)    /* Raw mu-law data (G.711) */
>  #define AST_FORMAT_ALAW     (1 << 3)    /* Raw A-law data (G.711) */
>  #define AST_FORMAT_MP3      (1 << 4)    /* MPEG-2 layer 3 */
> -#define AST_FORMAT_ADPCM    (1 << 5)    /* ADPCM (whose?) */
> +#define AST_FORMAT_G726	    (1 << 4)    /* ADPCM (G.726, 32kbps) */

...and I also got rid of the no-longer-used AST_FORMAT_MP3 (as that's
now AST_FORMAT_G726).