]> git.sesse.net Git - nageru/commitdiff
Fix an issue where pts would get clamped to zero if we had not read any frames yet.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 13 Dec 2018 19:32:45 +0000 (20:32 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 13 Dec 2018 19:32:45 +0000 (20:32 +0100)
futatabi/main.cpp

index c4b31f55c231ed86b1d6ab61f5792e9ecfa81193..7076230c7429f7cc2c236de332d4a1db253ebbbc 100644 (file)
@@ -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(),