diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-10-03 21:46:42 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-10-03 21:46:42 +0200 |
commit | 4a63c69faac6fca4eea6fc4e8466ebdc8c4575c5 (patch) | |
tree | 93e2a4a8b3f3af332e04fd09157e394832f210b7 /libavcodec/atrac3.c | |
parent | 2ece7d94bc35ba0ee2b650caec25853b9fcc2eb7 (diff) | |
parent | 79cbac8cd456c3f1c914bd1e7262b55e48de13a7 (diff) | |
download | ffmpeg-4a63c69faac6fca4eea6fc4e8466ebdc8c4575c5.tar.gz |
Merge remote-tracking branch 'qatar/master'
* qatar/master:
atrac3: Generalize gain compensation code
Conflicts:
libavcodec/atrac.c
libavcodec/atrac.h
libavcodec/atrac3.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/atrac3.c')
-rw-r--r-- | libavcodec/atrac3.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/libavcodec/atrac3.c b/libavcodec/atrac3.c index 9d8cf01ed5..5fdb363009 100644 --- a/libavcodec/atrac3.c +++ b/libavcodec/atrac3.c @@ -413,16 +413,15 @@ static int decode_tonal_components(GetBitContext *gb, static int decode_gain_control(GetBitContext *gb, GainBlock *block, int num_bands) { - int j, b; - + int b, j; int *level, *loc; AtracGainInfo *gain = block->g_block; for (b = 0; b <= num_bands; b++) { gain[b].num_points = get_bits(gb, 3); - level = gain[b].levcode; - loc = gain[b].loccode; + level = gain[b].lev_code; + loc = gain[b].loc_code; for (j = 0; j < gain[b].num_points; j++) { level[j] = get_bits(gb, 4); @@ -432,7 +431,7 @@ static int decode_gain_control(GetBitContext *gb, GainBlock *block, } } - /* Clear unused blocks. */ + /* Clear the unused blocks. */ for (; b < 4 ; b++) gain[b].num_points = 0; |