Mercurial > libavcodec.hg
comparison ac3enc.c @ 9999:c78fd9154378 libavcodec
Change av_log() calls surrounded by '#ifdef DEBUG' into dprintf macros.
author | diego |
---|---|
date | Thu, 30 Jul 2009 21:00:08 +0000 |
parents | f15a920ce40e |
children | 7955db355703 |
comparison
equal
deleted
inserted
replaced
9998:6b229807a182 | 9999:c78fd9154378 |
---|---|
248 /* estimate if the exponent variation & decide if they should be | 248 /* estimate if the exponent variation & decide if they should be |
249 reused in the next frame */ | 249 reused in the next frame */ |
250 exp_strategy[0][ch] = EXP_NEW; | 250 exp_strategy[0][ch] = EXP_NEW; |
251 for(i=1;i<NB_BLOCKS;i++) { | 251 for(i=1;i<NB_BLOCKS;i++) { |
252 exp_diff = calc_exp_diff(exp[i][ch], exp[i-1][ch], N/2); | 252 exp_diff = calc_exp_diff(exp[i][ch], exp[i-1][ch], N/2); |
253 #ifdef DEBUG | 253 dprintf(NULL, "exp_diff=%d\n", exp_diff); |
254 av_log(NULL, AV_LOG_DEBUG, "exp_diff=%d\n", exp_diff); | |
255 #endif | |
256 if (exp_diff > EXP_DIFF_THRESHOLD) | 254 if (exp_diff > EXP_DIFF_THRESHOLD) |
257 exp_strategy[i][ch] = EXP_NEW; | 255 exp_strategy[i][ch] = EXP_NEW; |
258 else | 256 else |
259 exp_strategy[i][ch] = EXP_REUSE; | 257 exp_strategy[i][ch] = EXP_REUSE; |
260 } | 258 } |