diff options
author | Jai Luthra <me@jailuthra.in> | 2016-08-23 00:02:04 +0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-08-28 12:18:16 +0300 |
commit | 0c023d181e581a0299d96a5edf7a736bdc66dc43 (patch) | |
tree | f990de96906d8b42e527017c911e5d355b73c489 /libavcodec/flacenc.c | |
parent | 88bcdf109a449d302bec977997af83e1462bca6c (diff) |
lavc/lpc: Add min_shift parameter in LPC
The min_shift parameter is needed by the MLP encoder
Signed-off-by: Jai Luthra <me@jailuthra.in>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/flacenc.c')
-rw-r--r-- | libavcodec/flacenc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/flacenc.c b/libavcodec/flacenc.c index 9d6a742938..3575f5391d 100644 --- a/libavcodec/flacenc.c +++ b/libavcodec/flacenc.c @@ -44,6 +44,7 @@ #define MAX_PARTITION_ORDER 8 #define MAX_PARTITIONS (1 << MAX_PARTITION_ORDER) #define MAX_LPC_PRECISION 15 +#define MIN_LPC_SHIFT 0 #define MAX_LPC_SHIFT 15 enum CodingMode { @@ -884,7 +885,7 @@ static int encode_residual_ch(FlacEncodeContext *s, int ch) opt_order = ff_lpc_calc_coefs(&s->lpc_ctx, smp, n, min_order, max_order, s->options.lpc_coeff_precision, coefs, shift, s->options.lpc_type, s->options.lpc_passes, omethod, - MAX_LPC_SHIFT, 0); + MIN_LPC_SHIFT, MAX_LPC_SHIFT, 0); if (omethod == ORDER_METHOD_2LEVEL || omethod == ORDER_METHOD_4LEVEL || |