[FFmpeg-soc] [soc]: r3122 - aac/aac.c
superdump
subversion at mplayerhq.hu
Sun Aug 10 12:26:47 CEST 2008
Author: superdump
Date: Sun Aug 10 12:26:47 2008
New Revision: 3122
Log:
Simplify decode_drc_channel_exclusions()
Modified:
aac/aac.c
Modified: aac/aac.c
==============================================================================
--- aac/aac.c (original)
+++ aac/aac.c Sun Aug 10 12:26:47 2008
@@ -1233,17 +1233,14 @@ static int decode_sbr_extension(AACConte
*/
static int decode_drc_channel_exclusions(DynamicRangeControl *che_drc, GetBitContext * gb) {
int i;
- int n = 0;
int num_excl_chan = 0;
do {
for (i = 0; i < 7; i++)
- che_drc->exclude_mask[num_excl_chan + i] = get_bits1(gb);
- n++;
- num_excl_chan += 7;
+ che_drc->exclude_mask[num_excl_chan++] = get_bits1(gb);
} while (num_excl_chan < MAX_CHANNELS - 7 && get_bits1(gb));
- return n;
+ return num_excl_chan / 7;
}
/**
More information about the FFmpeg-soc
mailing list