]> rtime.felk.cvut.cz Git - frescor/streamer.git/blobdiff - rt.c
Added closing of the FFmpeg output stream.
[frescor/streamer.git] / rt.c
diff --git a/rt.c b/rt.c
index 34f859f5eaaf1ea9791805c98cd73dada4180cd4..cd1d4d8014eebd183dffd85044a76883488a5120 100644 (file)
--- a/rt.c
+++ b/rt.c
@@ -1,3 +1,8 @@
+/*
+ *  Copyright (c) 2008 Luca Abeni
+ *
+ *  This is free software; see GPL.txt
+ */
 /* FIXME: Dummy implementations!!! */
 #include <stdio.h>
 #include <libavformat/avformat.h>
@@ -6,6 +11,11 @@ static uint64_t start_time, start_time1;
 
 void rt_job_start(uint64_t t)
 {
+extern int fps;
+#if 1
+  t += (1000000ul / fps);      /* Hack to work around v4l2vd bug... */
+#endif
+
   start_time = t;
   start_time1 = av_gettime();
 }