Revision 935442b5

View differences:

libavcodec/h263.c
1178 1178
        skip_bits1(&s->gb);   /* marker */
1179 1179
        
1180 1180
        time_increment_resolution = get_bits(&s->gb, 16);
1181
        s->time_increment_bits = log2(time_increment_resolution - 1) + 1;
1181
        s->time_increment_bits = av_log2(time_increment_resolution - 1) + 1;
1182 1182
        if (s->time_increment_bits < 1)
1183 1183
            s->time_increment_bits = 1;
1184 1184
        skip_bits1(&s->gb);   /* marker */
libavcodec/mpegaudio.c
317 317
        for(i=0;i<32;i++) {
318 318
            norm |= abs(tmp1[i]);
319 319
        }
320
        n = log2(norm) - 12;
320
        n = av_log2(norm) - 12;
321 321
        if (n > 0) {
322 322
            for(i=0;i<32;i++) 
323 323
                tmp1[i] >>= n;
......
364 364
            }
365 365
            /* compute the scale factor index using log 2 computations */
366 366
            if (vmax > 0) {
367
                n = log2(vmax);
367
                n = av_log2(vmax);
368 368
                /* n is the position of the MSB of vmax. now 
369 369
                   use at most 2 compares to find the index */
370 370
                index = (21 - n) * 3 - 3;

Also available in: Unified diff