From c20c3629e863bef3530f9f76b47fac0c93ba5b6f Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Fri, 21 Dec 2018 22:39:21 +0100 Subject: [PATCH] Remove an unneeded check. Found by Coverity Scan. --- futatabi/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/futatabi/main.cpp b/futatabi/main.cpp index 5f26235..69ef55b 100644 --- a/futatabi/main.cpp +++ b/futatabi/main.cpp @@ -282,7 +282,7 @@ void load_frame_file(const char *filename, const string &basename, unsigned file if (!all_frames.empty()) { // We already had this cached in the database, so no need to look in the file. for (const DB::FrameOnDiskAndStreamIdx &frame : all_frames) { - if (frame.stream_idx >= 0 && frame.stream_idx < MAX_STREAMS) { + if (frame.stream_idx < MAX_STREAMS) { frames[frame.stream_idx].push_back(frame.frame); start_pts = max(start_pts, frame.frame.pts); } -- 2.39.2