summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2010-12-14 14:52:49 +0000
committerJustin Ruggles <justin.ruggles@gmail.com>2010-12-14 14:52:49 +0000
commit98f6ee445369ce0983be19bf4524e4cfe20fec6e (patch)
treeb4cfb348b813cd445828af684ee4424d630175fc
parent12ed622699196070b13dc2da7c94b765374979f8 (diff)
cosmetics: rename 2 variables
Originally committed as revision 25987 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/ac3enc.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/libavcodec/ac3enc.c b/libavcodec/ac3enc.c
index bbb085cb69..a6353cc0f8 100644
--- a/libavcodec/ac3enc.c
+++ b/libavcodec/ac3enc.c
@@ -1083,7 +1083,7 @@ static int ac3_encode_frame(AVCodecContext *avctx,
int v;
int blk, blk1, blk2, ch, i;
int16_t planar_samples[AC3_MAX_CHANNELS][AC3_BLOCK_SIZE+AC3_FRAME_SIZE];
- int16_t input_samples[AC3_WINDOW_SIZE];
+ int16_t windowed_samples[AC3_WINDOW_SIZE];
int32_t mdct_coef[AC3_MAX_BLOCKS][AC3_MAX_CHANNELS][AC3_MAX_COEFS];
uint8_t exp[AC3_MAX_BLOCKS][AC3_MAX_CHANNELS][AC3_MAX_COEFS];
uint8_t exp_strategy[AC3_MAX_BLOCKS][AC3_MAX_CHANNELS];
@@ -1118,25 +1118,25 @@ static int ac3_encode_frame(AVCodecContext *avctx,
for (ch = 0; ch < s->channels; ch++) {
/* fixed mdct to the six sub blocks & exponent computation */
for (blk = 0; blk < AC3_MAX_BLOCKS; blk++) {
- int16_t *src_samples = &planar_samples[ch][blk * AC3_BLOCK_SIZE];
+ int16_t *input_samples = &planar_samples[ch][blk * AC3_BLOCK_SIZE];
/* apply the MDCT window */
for (i = 0; i < AC3_BLOCK_SIZE; i++) {
- input_samples[i] = MUL16(src_samples[i],
+ windowed_samples[i] = MUL16(input_samples[i],
ff_ac3_window[i]) >> 15;
- input_samples[AC3_WINDOW_SIZE-i-1] = MUL16(src_samples[AC3_WINDOW_SIZE-i-1],
+ windowed_samples[AC3_WINDOW_SIZE-i-1] = MUL16(input_samples[AC3_WINDOW_SIZE-i-1],
ff_ac3_window[i]) >> 15;
}
/* Normalize the samples to use the maximum available precision */
- v = 14 - log2_tab(input_samples, AC3_WINDOW_SIZE);
+ v = 14 - log2_tab(windowed_samples, AC3_WINDOW_SIZE);
if (v < 0)
v = 0;
exp_shift[blk][ch] = v - 9;
- lshift_tab(input_samples, AC3_WINDOW_SIZE, v);
+ lshift_tab(windowed_samples, AC3_WINDOW_SIZE, v);
/* do the MDCT */
- mdct512(mdct_coef[blk][ch], input_samples);
+ mdct512(mdct_coef[blk][ch], windowed_samples);
/* compute "exponents". We take into account the normalization there */
for (i = 0; i < AC3_MAX_COEFS; i++) {