changeset 70:c7767df463f4 libavcodec

log2 to av_log2
author glantau
date Wed, 15 Aug 2001 13:11:31 +0000
parents 361631a8d140
children 79be2c581c01
files h263.c mpegaudio.c
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/h263.c	Wed Aug 15 13:11:03 2001 +0000
+++ b/h263.c	Wed Aug 15 13:11:31 2001 +0000
@@ -1178,7 +1178,7 @@
         skip_bits1(&s->gb);   /* marker */
         
         time_increment_resolution = get_bits(&s->gb, 16);
-        s->time_increment_bits = log2(time_increment_resolution - 1) + 1;
+        s->time_increment_bits = av_log2(time_increment_resolution - 1) + 1;
         if (s->time_increment_bits < 1)
             s->time_increment_bits = 1;
         skip_bits1(&s->gb);   /* marker */
--- a/mpegaudio.c	Wed Aug 15 13:11:03 2001 +0000
+++ b/mpegaudio.c	Wed Aug 15 13:11:31 2001 +0000
@@ -317,7 +317,7 @@
         for(i=0;i<32;i++) {
             norm |= abs(tmp1[i]);
         }
-        n = log2(norm) - 12;
+        n = av_log2(norm) - 12;
         if (n > 0) {
             for(i=0;i<32;i++) 
                 tmp1[i] >>= n;
@@ -364,7 +364,7 @@
             }
             /* compute the scale factor index using log 2 computations */
             if (vmax > 0) {
-                n = log2(vmax);
+                n = av_log2(vmax);
                 /* n is the position of the MSB of vmax. now 
                    use at most 2 compares to find the index */
                 index = (21 - n) * 3 - 3;