---
libavcodec/ac3enc.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git libavcodec/ac3enc.c libavcodec/ac3enc.c
index 07725cd..8c35220 100644
--- libavcodec/ac3enc.c
+++ libavcodec/ac3enc.c
@@ -26,6 +26,7 @@
//#define DEBUG
//#define DEBUG_BITALLOC
+//#define DEBUG_EXPONENTS
#include "libavutil/crc.h"
#include "avcodec.h"
@@ -360,7 +361,9 @@ static void compute_exp_strategy(uint8_t exp_strategy[AC3_MAX_BLOCKS][AC3_MAX_CH
exp_strategy[0][ch] = EXP_NEW;
for (blk = 1; blk < AC3_MAX_BLOCKS; blk++) {
exp_diff = calc_exp_diff(exp[blk][ch], exp[blk-1][ch], AC3_MAX_COEFS);
+#ifdef DEBUG_EXPONENTS
dprintf(NULL, "exp_diff=%d\n", exp_diff);
+#endif
if (exp_diff > EXP_DIFF_THRESHOLD)
exp_strategy[blk][ch] = EXP_NEW;
else
@@ -457,7 +460,7 @@ static int encode_exp_blk_ch(uint8_t *exp, int nb_exps, int exp_strategy)
break;
}
-#ifdef DEBUG
+#ifdef DEBUG_EXPONENTS
dprintf(NULL, "exponents: strategy=%s\n",
exp_strategy==EXP_D15?"D15":exp_strategy==EXP_D25?"D25":"D45");
for (i = 0; i <= nb_groups * (exp_strategy+(exp_strategy==EXP_D45)); i++)
_______________________________________________
FFmpeg-soc mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc