Browse Source

lls: mark max_order as unsigned short

The value is within 0 and 32.

Remove an `array subscript is below array bounds` warning.
tags/n1.2
Luca Barbato 12 years ago
parent
commit
399663be9d
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      libavutil/lls.c
  2. +1
    -1
      libavutil/lls.h

+ 1
- 1
libavutil/lls.c View File

@@ -48,7 +48,7 @@ void avpriv_update_lls(LLSModel *m, double *var, double decay)
} }
} }


void avpriv_solve_lls(LLSModel *m, double threshold, int min_order)
void avpriv_solve_lls(LLSModel *m, double threshold, unsigned short min_order)
{ {
int i, j, k; int i, j, k;
double (*factor)[MAX_VARS + 1] = (void *) &m->covariance[1][0]; double (*factor)[MAX_VARS + 1] = (void *) &m->covariance[1][0];


+ 1
- 1
libavutil/lls.h View File

@@ -39,7 +39,7 @@ typedef struct LLSModel {


void avpriv_init_lls(LLSModel *m, int indep_count); void avpriv_init_lls(LLSModel *m, int indep_count);
void avpriv_update_lls(LLSModel *m, double *param, double decay); void avpriv_update_lls(LLSModel *m, double *param, double decay);
void avpriv_solve_lls(LLSModel *m, double threshold, int min_order);
void avpriv_solve_lls(LLSModel *m, double threshold, unsigned short min_order);
double avpriv_evaluate_lls(LLSModel *m, double *param, int order); double avpriv_evaluate_lls(LLSModel *m, double *param, int order);


#ifndef FF_API_LLS_PRIVATE #ifndef FF_API_LLS_PRIVATE


Loading…
Cancel
Save