]> git.sesse.net Git - nageru/commitdiff
Fix a hang when storing frame files.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 9 Dec 2018 17:25:49 +0000 (18:25 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 9 Dec 2018 17:25:49 +0000 (18:25 +0100)
futatabi/main.cpp

index f6d2ab12b6693a32d3fcfb6ab7f5556fc1dcbf7b..7c9f49db069c325fe05242dff0845b6e37b6e744 100644 (file)
@@ -169,7 +169,7 @@ FrameOnDisk write_frame(int stream_idx, int64_t pts, const uint8_t *data, size_t
 
                const char *basename = filename.c_str();
                while (strchr(basename, '/') != nullptr) {
-                       basename = strchr(basename, '/');
+                       basename = strchr(basename, '/') + 1;
                }
                db->store_frame_file(basename, size, frames_this_file);
        }