mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-10-28 10:04:37 +08:00
avcodec/rka: Fix shadowing
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
1 parent
0a1606f86c
commit
7950e5d1a5
1 file changed
+1
-2
+1
-2
@@ -410,7 +410,6 @@ static void update_ch_subobj(AdaptiveModel *am)
|
||||
static int amdl_decode_int(AdaptiveModel *am, ACoder *ac, unsigned *dst, unsigned size)
|
||||
{
|
||||
unsigned freq, size2, val, mul;
|
||||
int j;
|
||||
|
||||
size = FFMIN(size, am->buf_size - 1);
|
||||
|
||||
@@ -435,7 +434,7 @@ static int amdl_decode_int(AdaptiveModel *am, ACoder *ac, unsigned *dst, unsigne
|
||||
size2 = am->buf_size >> 1;
|
||||
val = am->prob[0][0];
|
||||
if (freq >= val) {
|
||||
int sum = 0;
|
||||
int sum = 0, j;
|
||||
for (j = freq - val; size2; size2 >>= 1) {
|
||||
unsigned v = am->prob[0][size2 + sum];
|
||||
if (j >= v) {
|
||||
|
||||
Reference in new issue
Block a user