From: Steinar H. Gunderson Date: Sat, 9 Mar 2019 19:40:11 +0000 (+0100) Subject: Add some asserts to guard against nonsensical start pts. X-Git-Tag: 1.8.3~9 X-Git-Url: https://git.sesse.net/?p=nageru;a=commitdiff_plain;h=5435b5bc0a8d324d8eef9b9fc9952b5245b25a3f Add some asserts to guard against nonsensical start pts. --- 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();