diff options
author | Diego Biurrun <diego@biurrun.de> | 2013-10-01 20:39:23 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2013-10-03 17:53:51 +0200 |
commit | be0b4c70ec40d7f9ac8e416a4379d4a387421184 (patch) | |
tree | e9044dca0b3fa5d584435b4057f7f514782f5926 /libavcodec | |
parent | 451606f7ce7e22aef989da3af49c48b663065d70 (diff) | |
download | ffmpeg-be0b4c70ec40d7f9ac8e416a4379d4a387421184.tar.gz |
atrac3: Replace a silly counter variable name with plain 'j'
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/atrac3.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/atrac3.c b/libavcodec/atrac3.c index 1cb7b2bc4d..18562a6b85 100644 --- a/libavcodec/atrac3.c +++ b/libavcodec/atrac3.c @@ -417,7 +417,7 @@ static int decode_tonal_components(GetBitContext *gb, static int decode_gain_control(GetBitContext *gb, GainBlock *block, int num_bands) { - int i, cf, num_data; + int i, j, num_data; int *level, *loc; GainInfo *gain = block->g_block; @@ -428,10 +428,10 @@ static int decode_gain_control(GetBitContext *gb, GainBlock *block, level = gain[i].lev_code; loc = gain[i].loc_code; - for (cf = 0; cf < gain[i].num_gain_data; cf++) { - level[cf] = get_bits(gb, 4); - loc [cf] = get_bits(gb, 5); - if (cf && loc[cf] <= loc[cf - 1]) + for (j = 0; j < gain[i].num_gain_data; j++) { + level[j] = get_bits(gb, 4); + loc[j] = get_bits(gb, 5); + if (j && loc[j] <= loc[j - 1]) return AVERROR_INVALIDDATA; } } |