From 5435b5bc0a8d324d8eef9b9fc9952b5245b25a3f Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 9 Mar 2019 20:40:11 +0100 Subject: [PATCH] Add some asserts to guard against nonsensical start pts. --- futatabi/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/futatabi/main.cpp b/futatabi/main.cpp index 0ef51be..9585dd4 100644 --- a/futatabi/main.cpp +++ b/futatabi/main.cpp @@ -255,6 +255,12 @@ int main(int argc, char **argv) load_existing_frames(); + for (int stream_idx = 0; stream_idx < MAX_STREAMS; ++stream_idx) { + if (!frames[stream_idx].empty()) { + assert(start_pts > frames[stream_idx].back().pts); + } + } + MainWindow main_window; main_window.show(); -- 2.39.2