]> git.sesse.net Git - nageru/blobdiff - futatabi/main.cpp
Make the number of files into a #define.
[nageru] / futatabi / main.cpp
index c13e19694783e3e2b178ce2f28ef5b6e8fcb3702..0ef51be546de44cc3e27ab78ec9cb657deee11ef 100644 (file)
@@ -145,7 +145,7 @@ FrameOnDisk write_frame(int stream_idx, int64_t pts, const uint8_t *data, size_t
                frames[stream_idx].push_back(frame);
        }
 
-       if (++file.frames_written_so_far >= 1000) {
+       if (++file.frames_written_so_far >= FRAMES_PER_FILE) {
                size_t size = ftell(file.fp);
 
                // Start a new file next time.