[FFmpeg-cvslog] avcodec/mlpenc: allow smaller shift for LPC

Paul B Mahol git at videolan.org
Thu Oct 19 00:11:31 EEST 2023


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Wed Oct 18 14:40:42 2023 +0200| [c1053e2e35dd0b782e59f20fa852ae1629b30396] | committer: Paul B Mahol

avcodec/mlpenc: allow smaller shift for LPC

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c1053e2e35dd0b782e59f20fa852ae1629b30396
---

 libavcodec/mlpenc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/mlpenc.c b/libavcodec/mlpenc.c
index 3418c1b134..c9532bc982 100644
--- a/libavcodec/mlpenc.c
+++ b/libavcodec/mlpenc.c
@@ -45,7 +45,7 @@
 
 #define MLP_MIN_LPC_ORDER      1
 #define MLP_MAX_LPC_ORDER      8
-#define MLP_MIN_LPC_SHIFT      8
+#define MLP_MIN_LPC_SHIFT      0
 #define MLP_MAX_LPC_SHIFT     15
 
 typedef struct RestartHeader {
@@ -1308,7 +1308,7 @@ static void set_filter_params(MLPEncodeContext *ctx,
                                   ctx->lpc_coeff_precision,
                                   coefs, shift, ctx->lpc_type, ctx->lpc_passes,
                                   ctx->prediction_order, MLP_MIN_LPC_SHIFT,
-                                  MLP_MAX_LPC_SHIFT, MLP_MIN_LPC_SHIFT);
+                                  MLP_MAX_LPC_SHIFT, 0);
 
         fp->order = order;
         fp->shift = shift[order-1];



More information about the ffmpeg-cvslog mailing list