]> git.sesse.net Git - nageru/blobdiff - main.cpp
Hook up some more clip modifications.
[nageru] / main.cpp
index 526ed575e32581ba6bedee5a63abd9d0ad3e1a86..865b98b82a3883693eacac6b88dd06b5548073c0 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -25,6 +25,9 @@ extern "C" {
 using namespace std;
 using namespace std::chrono;
 
+// TODO: Replace by some sort of GUI control, I guess.
+int64_t current_pts = 0;
+
 string filename_for_frame(unsigned stream_idx, int64_t pts)
 {
        char filename[256];
@@ -100,6 +103,7 @@ int thread_func()
                        this_thread::sleep_for(microseconds((pkt.pts - last_pts) * 1000000 / 12800));
                }
                last_pts = pkt.pts;
+               current_pts = pkt.pts;
        }
 
        return 0;