ffs: fix video frame rate delay on x86_64
authorAli Gholami Rudi <ali@rudi.ir>
Thu, 3 Nov 2011 16:55:11 +0000 (3 20:25 +0330)
committerAli Gholami Rudi <ali@rudi.ir>
Thu, 3 Nov 2011 16:55:11 +0000 (3 20:25 +0330)
ffs.c

diff --git a/ffs.c b/ffs.c
index 0033a06..ee6be94 100644 (file)
--- a/ffs.c
+++ b/ffs.c
@@ -87,7 +87,7 @@ static long ts_ms(void)
 
 static int wait(long ts, int vdelay)
 {
-       int nts = ts_ms();
+       long nts = ts_ms();
        if (nts > ts && ts + vdelay > nts) {
                usleep((ts + vdelay - nts) * 1000);
                return 0;