Rename encode_exp() to encode_exp_blk_ch() to reflect the fact that in only
encodes exponents for one block and one channel.
---
 libavcodec/ac3enc.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git libavcodec/ac3enc.c libavcodec/ac3enc.c
index 9e761a0..425b842 100644
--- libavcodec/ac3enc.c
+++ libavcodec/ac3enc.c
@@ -371,7 +371,7 @@ static void exponent_min(uint8_t exp[AC3_MAX_COEFS], uint8_t exp1[AC3_MAX_COEFS]
 
 /* update the exponents so that they are the ones the decoder will
    decode. Return the number of bits used to code the exponents */
-static int encode_exp(uint8_t *exp, int nb_exps, int exp_strategy)
+static int encode_exp_blk_ch(uint8_t *exp, int nb_exps, int exp_strategy)
 {
     int nb_groups, i, k;
     int exp_min1, exp_min2;
@@ -477,8 +477,8 @@ static void process_exponents(AC3EncodeContext *s,
                 exponent_min(exp[blk][ch], exp[blk1][ch], s->nb_coefs[ch]);
                 blk1++;
             }
-            *frame_bits += encode_exp(exp[blk][ch], s->nb_coefs[ch],
-                                      exp_strategy[blk][ch]);
+            *frame_bits += encode_exp_blk_ch(exp[blk][ch], s->nb_coefs[ch],
+                                             exp_strategy[blk][ch]);
             /* copy encoded exponents for reuse case */
             for (blk2 = blk+1; blk2 < blk1; blk2++) {
                 memcpy(exp[blk2][ch], exp[blk][ch],
_______________________________________________
FFmpeg-soc mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc

Reply via email to