All pastes #1097602 Raw Edit

flac_filter_2.diff

public text v1 · immutable
#1097602 ·published 2008-08-10 01:27 UTC
rendered paste body
Index: libavcodec/flacenc.c
===================================================================
--- libavcodec/flacenc.c	(revision 14517)
+++ libavcodec/flacenc.c	(working copy)
@@ -745,7 +745,7 @@
 /**
  * Calculate LPC coefficients for multiple orders
  */
-static int lpc_calc_coefs(FlacEncodeContext *s,
+int ff_lpc_calc_coefs(DSPContext *dsp,
                           const int32_t *samples, int blocksize, int max_order,
                           int precision, int32_t coefs[][MAX_LPC_ORDER],
                           int *shift, int use_lpc, int omethod)
@@ -759,7 +759,7 @@
     assert(max_order >= MIN_LPC_ORDER && max_order <= MAX_LPC_ORDER);
 
     if(use_lpc == 1){
-        s->dsp.flac_compute_autocorr(samples, blocksize, max_order, autoc);
+        dsp->flac_compute_autocorr(samples, blocksize, max_order, autoc);
 
         compute_lpc_coefs(autoc, max_order, lpc, ref);
     }else{
@@ -1042,7 +1042,7 @@
     }
 
     /* LPC */
-    opt_order = lpc_calc_coefs(ctx, smp, n, max_order, precision, coefs, shift, ctx->options.use_lpc, omethod);
+    opt_order = ff_lpc_calc_coefs(&ctx->dsp, smp, n, max_order, precision, coefs, shift, ctx->options.use_lpc, omethod);
 
     if(omethod == ORDER_METHOD_2LEVEL ||
        omethod == ORDER_METHOD_4LEVEL ||