From: Steinar H. Gunderson Date: Thu, 13 Dec 2018 19:32:45 +0000 (+0100) Subject: Fix an issue where pts would get clamped to zero if we had not read any frames yet. X-Git-Tag: 1.8.0~27 X-Git-Url: https://git.sesse.net/?p=nageru;a=commitdiff_plain;h=8c52fd7481d962d52b73961215251951a798a87a Fix an issue where pts would get clamped to zero if we had not read any frames yet. --- 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(),