From 8c52fd7481d962d52b73961215251951a798a87a Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Thu, 13 Dec 2018 20:32:45 +0100 Subject: [PATCH] Fix an issue where pts would get clamped to zero if we had not read any frames yet. --- futatabi/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/futatabi/main.cpp b/futatabi/main.cpp index c4b31f5..7076230 100644 --- a/futatabi/main.cpp +++ b/futatabi/main.cpp @@ -431,6 +431,7 @@ void load_existing_frames() // Add a gap of one second from the old frames to the new ones. start_pts += TIMEBASE; } + current_pts = start_pts; for (int stream_idx = 0; stream_idx < MAX_STREAMS; ++stream_idx) { sort(frames[stream_idx].begin(), frames[stream_idx].end(), -- 2.39.2