diff --git a/libswscale/yuv2rgb.c b/libswscale/yuv2rgb.c
index 18afc5b6bcf99b3b092dc812010d5e259b650507..23c5f6dc48ef80fd9140d05ba2b4a06bf093da2a 100644
--- a/libswscale/yuv2rgb.c
+++ b/libswscale/yuv2rgb.c
@@ -667,7 +667,7 @@ SwsFunc ff_yuv2rgb_get_func_ptr(SwsContext *c)
 }
 
 static void fill_table(uint8_t* table[256 + 2*YUVRGB_TABLE_HEADROOM], const int elemsize,
-                       const int inc, void *y_tab)
+                       const int64_t inc, void *y_tab)
 {
     int i;
     uint8_t *y_table = y_tab;