[FFmpeg-soc] [soc]: r4227 - mlp/mlpenc.c
ramiro
subversion at mplayerhq.hu
Mon Apr 20 05:05:17 CEST 2009
Author: ramiro
Date: Mon Apr 20 05:05:17 2009
New Revision: 4227
Log:
Under SUBSTREAM_INFO_HIGH_RATE, FIR.order <= 4.
Modified:
mlp/mlpenc.c
Modified: mlp/mlpenc.c
==============================================================================
--- mlp/mlpenc.c Mon Apr 20 05:03:32 2009 (r4226)
+++ mlp/mlpenc.c Mon Apr 20 05:05:17 2009 (r4227)
@@ -1448,6 +1448,8 @@ static void set_filter_params(MLPEncodeC
fp->order = 0;
} else
if (filter == FIR) {
+ const int max_order = (ctx->substream_info & SUBSTREAM_INFO_HIGH_RATE)
+ ? 4 : MLP_MAX_LPC_ORDER;
int32_t *sample_buffer = ctx->sample_buffer + channel;
int32_t coefs[MAX_LPC_ORDER][MAX_LPC_ORDER];
int32_t *lpc_samples = ctx->lpc_sample_buffer;
@@ -1461,7 +1463,7 @@ static void set_filter_params(MLPEncodeC
}
order = ff_lpc_calc_coefs(&ctx->dsp, ctx->lpc_sample_buffer, ctx->number_of_samples,
- MLP_MIN_LPC_ORDER, MLP_MAX_LPC_ORDER, 11,
+ MLP_MIN_LPC_ORDER, max_order, 11,
coefs, shift, 1,
ORDER_METHOD_EST, MLP_MIN_LPC_SHIFT, MLP_MAX_LPC_SHIFT, MLP_MIN_LPC_SHIFT);
More information about the FFmpeg-soc
mailing list