Skip to content

Commit

Permalink
Use define for maximum prediction order.
Browse files Browse the repository at this point in the history
  • Loading branch information
foo86 committed Dec 14, 2015
1 parent ae6a0a7 commit c66683c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libdcadec/xll_decoder.c
Expand Up @@ -664,7 +664,7 @@ void xll_filter_band_data(struct xll_chset *chs, int band_i)
int *buf = band->msb_sample_buffer[i];
int order = band->adapt_pred_order[i];
if (order > 0) {
int coeff[16];
int coeff[XLL_MAX_ADAPT_PRED_ORDER];
// Conversion from reflection coefficients to direct form coefficients
for (j = 0; j < order; j++) {
int rc = band->adapt_refl_coeff[i][j];
Expand Down
3 changes: 2 additions & 1 deletion libdcadec/xll_decoder.h
Expand Up @@ -23,6 +23,7 @@

#define XLL_MAX_CHANNELS 8
#define XLL_MAX_BANDS 2
#define XLL_MAX_ADAPT_PRED_ORDER 16

#define XLL_DECI_HISTORY 8

Expand Down Expand Up @@ -62,7 +63,7 @@ struct xll_band {
int adapt_pred_order[XLL_MAX_CHANNELS];
int highest_pred_order;
int fixed_pred_order[XLL_MAX_CHANNELS];
int adapt_refl_coeff[XLL_MAX_CHANNELS][16];
int adapt_refl_coeff[XLL_MAX_CHANNELS][XLL_MAX_ADAPT_PRED_ORDER];

bool dmix_embedded;

Expand Down

0 comments on commit c66683c

Please sign in to comment.