Revision 0d8837bd libavcodec/ra144enc.c

View differences:

libavcodec/ra144enc.c
29 29

  
30 30
#include "avcodec.h"
31 31
#include "put_bits.h"
32
#include "lpc.h"
33 32
#include "celp_filters.h"
34 33
#include "ra144.h"
35 34

  
......
53 52
    ractx->lpc_coef[0] = ractx->lpc_tables[0];
54 53
    ractx->lpc_coef[1] = ractx->lpc_tables[1];
55 54
    ractx->avctx = avctx;
56
    dsputil_init(&ractx->dsp, avctx);
55
    ff_lpc_init(&ractx->lpc_ctx);
57 56
    return 0;
58 57
}
59 58

  
......
451 450
    energy = ff_energy_tab[quantize(ff_t_sqrt(energy >> 5) >> 10, ff_energy_tab,
452 451
                                    32)];
453 452

  
454
    ff_lpc_calc_coefs(&ractx->dsp, lpc_data, NBLOCKS * BLOCKSIZE, LPC_ORDER,
453
    ff_lpc_calc_coefs(&ractx->lpc_ctx, lpc_data, NBLOCKS * BLOCKSIZE, LPC_ORDER,
455 454
                      LPC_ORDER, 16, lpc_coefs, shift, AV_LPC_TYPE_LEVINSON,
456 455
                      0, ORDER_METHOD_EST, 12, 0);
457 456
    for (i = 0; i < LPC_ORDER; i++)

Also available in: Unified diff