Commit 34763c15 authored by Fabrice Bellard's avatar Fabrice Bellard

renamed log2 to av_log2


Originally committed as revision 96 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 67e9bb0d
...@@ -1195,7 +1195,7 @@ static int log2_tab(INT16 *tab, int n) ...@@ -1195,7 +1195,7 @@ static int log2_tab(INT16 *tab, int n)
for(i=0;i<n;i++) { for(i=0;i<n;i++) {
v |= abs(tab[i]); v |= abs(tab[i]);
} }
return log2(v); return av_log2(v);
} }
static void lshift_tab(INT16 *tab, int n, int lshift) static void lshift_tab(INT16 *tab, int n, int lshift)
...@@ -1307,7 +1307,7 @@ int AC3_encode_frame(AVCodecContext *avctx, ...@@ -1307,7 +1307,7 @@ int AC3_encode_frame(AVCodecContext *avctx,
if (v == 0) if (v == 0)
e = 24; e = 24;
else { else {
e = 23 - log2(v) + exp_samples[i][ch]; e = 23 - av_log2(v) + exp_samples[i][ch];
if (e >= 24) { if (e >= 24) {
e = 24; e = 24;
mdct_coef[i][ch][j] = 0; mdct_coef[i][ch][j] = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment