Commit c2df9597 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'be0b4c70'

* commit 'be0b4c70':
  atrac3: Replace a silly counter variable name with plain 'j'

Conflicts:
	libavcodec/atrac3.c
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 6565b1ad be0b4c70
......@@ -413,7 +413,8 @@ static int decode_tonal_components(GetBitContext *gb,
static int decode_gain_control(GetBitContext *gb, GainBlock *block,
int num_bands)
{
int i, b;
int j, b;
int *level, *loc;
AtracGainInfo *gain = block->g_block;
......@@ -423,10 +424,10 @@ static int decode_gain_control(GetBitContext *gb, GainBlock *block,
level = gain[b].levcode;
loc = gain[b].loccode;
for (i = 0; i < gain[b].num_points; i++) {
level[i] = get_bits(gb, 4);
loc [i] = get_bits(gb, 5);
if (i && loc[i] <= loc[i-1])
for (j = 0; j < gain[b].num_points; j++) {
level[j] = get_bits(gb, 4);
loc[j] = get_bits(gb, 5);
if (j && loc[j] <= loc[j - 1])
return AVERROR_INVALIDDATA;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment