static int adx_decode_header(AVCodecContext *avctx,const unsigned char *buf,size_t bufsize)

{

	int offset;

	int channels,freq,size;



	offset = is_adx(buf,bufsize);

	if (offset==0) return 0;



	channels = buf[7];

	freq = read_long(buf+8);

	size = read_long(buf+12);



//	printf("freq=%d ch=%d\n",freq,channels);



	avctx->sample_rate = freq;

	avctx->channels = channels;

	avctx->bit_rate = freq*channels*18*8/32;

//	avctx->frame_size = 18*channels;



	return offset;

}

static int adx_decode_header(AVCodecContext *avctx,const unsigned char *buf,size_t bufsize)

{

	int offset;

	int channels,freq,size;



	offset = is_adx(buf,bufsize);

	if (offset==0) return 0;



	channels = buf[7];

	freq = read_long(buf+8);

	size = read_long(buf+12);







	avctx->sample_rate = freq;

	avctx->channels = channels;

	avctx->bit_rate = freq*channels*18*8/32;





	return offset;

}

	return offset; 	int offset; 	int channels,freq,size; 	offset = is_adx(buf,bufsize); 	if (offset==0) return 0; 	channels = buf[7]; 	freq = read_long(buf+8); 	size = read_long(buf+12); 	avctx->sample_rate = freq; 	avctx->channels = channels; 	avctx->bit_rate = freq*channels*18*8/32; 	return offset;
static int FUNC_0(AVCodecContext *VAR_0,const unsigned char *VAR_1,size_t VAR_2)

{

	int VAR_3;

	int VAR_4,VAR_5,VAR_6;



	VAR_3 = is_adx(VAR_1,VAR_2);

	if (VAR_3==0) return 0;



	VAR_4 = VAR_1[7];

	VAR_5 = read_long(VAR_1+8);

	VAR_6 = read_long(VAR_1+12);







	VAR_0->sample_rate = VAR_5;

	VAR_0->VAR_4 = VAR_4;

	VAR_0->bit_rate = VAR_5*VAR_4*18*8/32;





	return VAR_3;

}

static int FUNC_0(AVCodecContext *VAR_0,const unsigned char *VAR_1,size_t VAR_2)
{ int VAR_3; int VAR_4,VAR_5,VAR_6; VAR_3 = is_adx(VAR_1,VAR_2); if (VAR_3==0) return 0; VAR_4 = VAR_1[7]; VAR_5 = read_long(VAR_1+8); VAR_6 = read_long(VAR_1+12); VAR_0->sample_rate = VAR_5; VAR_0->VAR_4 = VAR_4; VAR_0->bit_rate = VAR_5*VAR_4*18*8/32; return VAR_3; }