summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMans Rullgard <[email protected]>2012-07-01 13:36:30 +0100
committerReinhard Tartler <[email protected]>2012-10-17 21:31:01 +0200
commitc28e1c12adf43044c54383eec8a581f630fffda8 (patch)
tree6784515d98d5374e3b8026a0592964a573f7d315
parentc5f9c272e9df0e226503cfc8029308a64d72aae4 (diff)
alsdec: remove dead assignments
Signed-off-by: Mans Rullgard <[email protected]> (cherry picked from commit 4ca6d206d1b5beea42c4290d2ee801aaf5cd31f0) Signed-off-by: Reinhard Tartler <[email protected]>
-rw-r--r--libavcodec/alsdec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c
index 4c8e5a9e27..92b9e6caa5 100644
--- a/libavcodec/alsdec.c
+++ b/libavcodec/alsdec.c
@@ -770,7 +770,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;
@@ -781,7 +781,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];