summaryrefslogtreecommitdiff
path: root/libavcodec/alsdec.c
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2012-07-01 13:36:30 +0100
committerMans Rullgard <mans@mansr.com>2012-07-01 20:38:14 +0100
commit4ca6d206d1b5beea42c4290d2ee801aaf5cd31f0 (patch)
treeedfd7f1f38924f1c48857248ed8d23c5713c2b87 /libavcodec/alsdec.c
parent3893feeccdf754057fc7c7ac711ae876733f2f33 (diff)
alsdec: remove dead assignments
Signed-off-by: Mans Rullgard <mans@mansr.com>
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 3d4f2bdd70..c411d5739a 100644
--- a/libavcodec/alsdec.c
+++ b/libavcodec/alsdec.c
@@ -756,7 +756,7 @@ static int read_var_block_data(ALSDecContext *ctx, ALSBlockData *bd)
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;
+ unsigned int i;
// read most significant bits
unsigned int high;
@@ -767,7 +767,7 @@ static int read_var_block_data(ALSDecContext *ctx, ALSBlockData *bd)
current_res = bd->raw_samples + start;
- for (sb = 0; sb < sub_blocks; sb++, i = 0) {
+ for (sb = 0; sb < sub_blocks; sb++) {
k [sb] = s[sb] > b ? s[sb] - b : 0;
delta[sb] = 5 - s[sb] + k[sb];