Revision fbb6b49d libavcodec/ac3dsp.c

View differences:

libavcodec/ac3dsp.c
42 42
    }
43 43
}
44 44

  
45
static int ac3_max_msb_abs_int16_c(const int16_t *src, int len)
46
{
47
    int i, v = 0;
48
    for (i = 0; i < len; i++)
49
        v |= abs(src[i]);
50
    return v;
51
}
52

  
45 53
av_cold void ff_ac3dsp_init(AC3DSPContext *c)
46 54
{
47 55
    c->ac3_exponent_min = ac3_exponent_min_c;
56
    c->ac3_max_msb_abs_int16 = ac3_max_msb_abs_int16_c;
48 57

  
49 58
    if (HAVE_MMX)
50 59
        ff_ac3dsp_init_x86(c);

Also available in: Unified diff