diff --git a/libavutil/lls.c b/libavutil/lls.c
index 13eea96fde4afa9c67c24015e2d54091f8bba71d..749163e68b970f6f57d67aaad4b4c89ce53fb82c 100644
--- a/libavutil/lls.c
+++ b/libavutil/lls.c
@@ -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];
diff --git a/libavutil/lls.h b/libavutil/lls.h
index 0f02c8d6a5e358b3a7f44436099c6bee0a4ef02e..d8d53d0a3d46486b772abdc156c4a8e77e44bf88 100644
--- a/libavutil/lls.h
+++ b/libavutil/lls.h
@@ -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