Merge commit 'be0b4c70ec40d7f9ac8e416a4379d4a387421184'

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

Conflicts:
	libavcodec/atrac3.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
pull/37/merge
Michael Niedermayer 11 years ago
commit c2df95978b
  1. 11
      libavcodec/atrac3.c

@ -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;
}
}

Loading…
Cancel
Save