aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/alsdec.c
diff options
context:
space:
mode:
authorThilo Borgmann <thilo.borgmann@googlemail.com>2010-11-08 15:22:15 +0000
committerThilo Borgmann <thilo.borgmann@googlemail.com>2010-11-08 15:22:15 +0000
commit4051ae7617f450e604ee951eb8e362bbf9f05211 (patch)
tree4577dc72242961231dabc9c3a4536a0a0bd3a827 /libavcodec/alsdec.c
parent361d2758799650a03a49239a683302341ccc91f6 (diff)
downloadffmpeg-4051ae7617f450e604ee951eb8e362bbf9f05211.tar.gz
Allow clean initialization of lut_status array by changing type to signed int.
Originally committed as revision 25710 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/alsdec.c')
-rw-r--r--libavcodec/alsdec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c
index 6993bb98a6..20dbe4397b 100644
--- a/libavcodec/alsdec.c
+++ b/libavcodec/alsdec.c
@@ -203,7 +203,7 @@ typedef struct {
unsigned int num_blocks; ///< number of blocks used in the current frame
unsigned int s_max; ///< maximum Rice parameter allowed in entropy coding
uint8_t *bgmc_lut; ///< pointer at lookup tables used for BGMC
- unsigned int *bgmc_lut_status; ///< pointer at lookup table status flags used for BGMC
+ int *bgmc_lut_status; ///< pointer at lookup table status flags used for BGMC
int ltp_lag_length; ///< number of bits used for ltp lag value
int *use_ltp; ///< contains use_ltp flags for all channels
int *ltp_lag; ///< contains ltp lag values for all channels
@@ -749,7 +749,7 @@ static int read_var_block_data(ALSDecContext *ctx, ALSBlockData *bd)
// read all residuals
if (sconf->bgmc) {
- unsigned int delta[8];
+ int delta[8];
unsigned int k [8];
unsigned int b = av_clip((av_ceil_log2(bd->block_length) - 3) >> 1, 0, 5);
unsigned int i = start;