]> git.sesse.net Git - nageru/commitdiff
Remove an unneeded check.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 21 Dec 2018 21:39:21 +0000 (22:39 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 21 Dec 2018 21:39:21 +0000 (22:39 +0100)
Found by Coverity Scan.

futatabi/main.cpp

index 5f262353eed6a55246286a557af0456ae2608528..69ef55bedc33b89f2f85ad156e13e3b3708412c7 100644 (file)
@@ -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);
                        }