diff options
author | Mans Rullgard <mans@mansr.com> | 2012-07-01 13:36:30 +0100 |
---|---|---|
committer | Reinhard Tartler <siretart@tauware.de> | 2013-01-04 07:43:38 +0100 |
commit | 7e070cf2025fe7d0d7f296b7c7592e2c9b8cd1e5 (patch) | |
tree | fcf7d6e4db1f0b377ed797bbcbbdf5f6a7429c1a | |
parent | 1b48a426a96f361ee659f2054a48da312f69fc8a (diff) | |
download | ffmpeg-7e070cf2025fe7d0d7f296b7c7592e2c9b8cd1e5.tar.gz |
alsdec: remove dead assignments
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 4ca6d206d1b5beea42c4290d2ee801aaf5cd31f0)
Signed-off-by: Reinhard Tartler <siretart@tauware.de>
-rw-r--r-- | libavcodec/alsdec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c index 25a9c5433e..a7d7fd732f 100644 --- a/libavcodec/alsdec.c +++ b/libavcodec/alsdec.c @@ -769,7 +769,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; @@ -780,7 +780,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]; |