]> git.sesse.net Git - ffmpeg/commitdiff
lls: mark max_order as unsigned short
authorLuca Barbato <lu_zero@gentoo.org>
Mon, 25 Feb 2013 09:37:39 +0000 (10:37 +0100)
committerLuca Barbato <lu_zero@gentoo.org>
Thu, 28 Feb 2013 16:39:24 +0000 (17:39 +0100)
The value is within 0 and 32.

Remove an `array subscript is below array bounds` warning.

libavutil/lls.c
libavutil/lls.h

index 645e52874450119b157140e155afa4f437554660..a26b3c23d9b6f75aa74e4b81d827912ae2021774 100644 (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;
     double (*factor)[MAX_VARS + 1] = (void *) &m->covariance[1][0];
index 4b197985a864b773c468ff80d43d0cc161f14d4b..abaf4a73748b45d2f258cfd7b3057705eea35b46 100644 (file)
@@ -39,7 +39,7 @@ typedef struct LLSModel {
 
 void avpriv_init_lls(LLSModel *m, int indep_count);
 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);
 
 #ifndef FF_API_LLS_PRIVATE