diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-11-05 01:18:25 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-11-05 01:18:25 +0100 |
commit | 6cfabf83b250dddc6c4b7fadf42587778f243caf (patch) | |
tree | af7f66cbd3bbdc203aab6d2b722058fef6886599 /src/gui | |
parent | 07a64ffd954b4273bd6afc7fa03b284c3dced640 (diff) |
Update file size estimation for replay after gsr fix
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/SettingsPage.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/SettingsPage.cpp b/src/gui/SettingsPage.cpp index 94c33fd..d8f40f9 100644 --- a/src/gui/SettingsPage.cpp +++ b/src/gui/SettingsPage.cpp @@ -556,8 +556,8 @@ namespace gsr { void SettingsPage::update_estimated_file_size() { const int64_t replay_time_seconds = atoi(replay_time_entry_ptr->get_text().c_str()); - const int64_t video_bitrate_bps = atoi(video_bitrate_entry_ptr->get_text().c_str()) * 1000LL; - const double video_filesize_mb = ((double)replay_time_seconds * (double)video_bitrate_bps) / 1024.0 / 1024.0 / 3.3333; // Why 3.3333? + const int64_t video_bitrate_bps = atoi(video_bitrate_entry_ptr->get_text().c_str()) * 1024LL; + const double video_filesize_mb = ((double)replay_time_seconds * (double)video_bitrate_bps) / 1024.0 / 1024.0; char buffer[512]; snprintf(buffer, sizeof(buffer), "Estimated video max file size in RAM: %.2fMB", video_filesize_mb); |