Commit 62498ede authored by ramiro's avatar ramiro

alacenc: Use user-specified min and max prediction order.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14844 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent c093d2ae
...@@ -130,7 +130,7 @@ static void calc_predictor_params(AlacEncodeContext *s, int ch) ...@@ -130,7 +130,7 @@ static void calc_predictor_params(AlacEncodeContext *s, int ch)
int shift[MAX_LPC_ORDER]; int shift[MAX_LPC_ORDER];
int opt_order; int opt_order;
opt_order = ff_lpc_calc_coefs(&s->dspctx, s->sample_buf[ch], s->avctx->frame_size, DEFAULT_MIN_PRED_ORDER, DEFAULT_MAX_PRED_ORDER, opt_order = ff_lpc_calc_coefs(&s->dspctx, s->sample_buf[ch], s->avctx->frame_size, s->min_prediction_order, s->max_prediction_order,
ALAC_MAX_LPC_PRECISION, coefs, shift, 1, ORDER_METHOD_EST, ALAC_MAX_LPC_SHIFT, 1); ALAC_MAX_LPC_PRECISION, coefs, shift, 1, ORDER_METHOD_EST, ALAC_MAX_LPC_SHIFT, 1);
s->lpc[ch].lpc_order = opt_order; s->lpc[ch].lpc_order = opt_order;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment