History

avcodec/mlpenc: increase compression ratio even more, fix LPC parameters

Paul B Mahol committed 3 years ago

Commit a1b29ab1 parent 0be5da91 file · +3 −4Browse files

Unified · Split

libavcodec/mlpenc.c+3−4
@@ -41,7 +41,7 @@ · 40 unmodified lines
4141
4242 #define MLP_MIN_LPC_ORDER 1
4343 #define MLP_MAX_LPC_ORDER 8
44−#define MLP_MIN_LPC_SHIFT 8
44+#define MLP_MIN_LPC_SHIFT 0
4545 #define MLP_MAX_LPC_SHIFT 15
4646
4747 typedef struct {
@@ -1334,13 +1334,12 @@ static void set_filter_params(MLPEncodeContext *ctx, · 1286 unmodified lines
13341334 } else if (filter == IIR) {
13351335 fp->order = 0;
13361336 } else if (filter == FIR) {
1337− const int max_order = (ctx->substream_info & SUBSTREAM_INFO_HIGH_RATE)
1338− ? 4 : MLP_MAX_LPC_ORDER;
1337+ const int max_order = MAX_FIR_ORDER;
13391338 int32_t *sample_buffer = ctx->sample_buffer + channel;
13401339 int32_t coefs[MAX_LPC_ORDER][MAX_LPC_ORDER];
13411340 int32_t *lpc_samples = ctx->lpc_sample_buffer;
13421341 int32_t *fcoeff = ctx->cur_channel_params[channel].coeff[filter];
1343− int shift[MLP_MAX_LPC_ORDER];
1342+ int shift[MAX_LPC_ORDER];
13441343 int order;
13451344
13461345 for (unsigned int i = 0; i < ctx->number_of_samples; i++) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t