From 392d86d130a44409dc1e7f289857d60437bd4289 Mon Sep 17 00:00:00 2001 From: Ali Gholami Rudi Date: Wed, 13 Apr 2011 21:49:36 +0430 Subject: [PATCH] ffs: wait at least 1/50s between video frames --- ffs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffs.c b/ffs.c index 4874747..efabb64 100644 --- a/ffs.c +++ b/ffs.c @@ -100,7 +100,7 @@ void ffs_wait(struct ffs *ffs) if (ts && ffs->ts) { AVRational *r = &ffs->fc->streams[ffs->si]->time_base; int vdelay = 1000 * r->num / r->den; - wait(ffs->ts, vdelay); + wait(ffs->ts, vdelay < 20 ? 20 : vdelay); } ffs->ts = ts_ms(); } -- 2.11.4.GIT