From 5c91a6755b6412c918e20ff4735ca30f38a12569 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 10 Feb 2003 09:35:32 +0000 Subject: * static,const,compiler warning cleanup Originally committed as revision 1567 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/ac3enc.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'libavcodec/ac3enc.c') diff --git a/libavcodec/ac3enc.c b/libavcodec/ac3enc.c index 2becee57ba..7abc5f3971 100644 --- a/libavcodec/ac3enc.c +++ b/libavcodec/ac3enc.c @@ -28,18 +28,18 @@ typedef struct AC3EncodeContext { int nb_all_channels; int lfe_channel; int bit_rate; - int sample_rate; - int bsid; - int frame_size_min; /* minimum frame size in case rounding is necessary */ - int frame_size; /* current frame size in words */ + unsigned int sample_rate; + unsigned int bsid; + unsigned int frame_size_min; /* minimum frame size in case rounding is necessary */ + unsigned int frame_size; /* current frame size in words */ int halfratecod; - int frmsizecod; - int fscod; /* frequency */ - int acmod; + unsigned int frmsizecod; + unsigned int fscod; /* frequency */ + unsigned int acmod; int lfe; - int bsmod; + unsigned int bsmod; short last_samples[AC3_MAX_CHANNELS][256]; - int chbwcod[AC3_MAX_CHANNELS]; + unsigned int chbwcod[AC3_MAX_CHANNELS]; int nb_coefs[AC3_MAX_CHANNELS]; /* bitrate allocation control */ @@ -586,7 +586,7 @@ static int encode_exp(UINT8 encoded_exp[N/2], } /* return the size in bits taken by the mantissa */ -int compute_mantissa_size(AC3EncodeContext *s, UINT8 *m, int nb_coefs) +static int compute_mantissa_size(AC3EncodeContext *s, UINT8 *m, int nb_coefs) { int bits, mant, i; -- cgit v1.2.3