Revision 935442b5 libavcodec/mpegaudio.c

View differences:

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